Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ActionInput label height #1361

Merged
merged 1 commit into from
Sep 4, 2020
Merged

Conversation

tcitworld
Copy link
Contributor

@tcitworld tcitworld added bug Something isn't working 3. to review Waiting for reviews feature: actions Related to the actions components labels Aug 28, 2020
Comment on lines 310 to 311
width: #{$clickable-area - $input-margin * 6};
height: #{$clickable-area - $input-margin * 6};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it doesn't make any sense to have 6 here.
The 2 were here to compensate from height/width.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

box-sizing: border-box; might be the better option here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine with border-box indeed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iwonder if that wouldn't make sense to apply this to the whole actions component with the * selector. I thought I saw a comment about this somewhere, but can't find it.

If we want to be as independent from server's styling as possible, this might be better 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iwonder if that wouldn't make sense to apply this to the whole actions component with the * selector. I thought I saw a comment about this somewhere, but can't find it.

If we want to be as independent from server's styling as possible, this might be better 🤔

I guess this should be ok, since we have this in the server anyway (only for content, but that effects most elements):

#content[class*='app-'] * {
 box-sizing:border-box
}

But if we do that, we could as well just do it globally for all vue components.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if we do that, we could as well just do it globally for all vue components.

That is what I meant

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if we do that, we could as well just do it globally for all vue components.

That is what I meant

Ah, ok. I thought you meant to only apply it to the Actions component. If we have it globally, we could also get rid of this https://github.com/nextcloud/nextcloud-vue/blob/master/tests/visual/components/AppSidebar/AppSidebar.visual.js#L40-L49 and this https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/Content/Content.vue#L73-L75, I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my message wasn't very clear :p
what do you think @tcitworld ?

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
@tcitworld
Copy link
Contributor Author

tcitworld commented Sep 2, 2020

Dropped my commit for cleaner history then. :)

@julien-nc
Copy link
Contributor

julien-nc commented Sep 4, 2020

@skjnldsv @raimund-schluessler @tcitworld Any objection to merge this? I think it's good to get that even if a more general rule is applied in the future.

@skjnldsv
Copy link
Contributor

skjnldsv commented Sep 4, 2020

Please open a follup issue then :)

@julien-nc julien-nc merged commit 40a892f into master Sep 4, 2020
@julien-nc julien-nc deleted the fix-action-input-label-height branch September 4, 2020 12:43
@georgehrke georgehrke mentioned this pull request Sep 11, 2020
4 tasks
@MorrisJobke
Copy link
Contributor

Bildschirmfoto 2020-09-11 um 10 49 18

Also present in weather widget of 20.0.0 beta 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: actions Related to the actions components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants