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
WEBUI-362: fix tabs height #1260
Conversation
View issue in JIRA: WEBUI-362: Fix double scrollbars on listings in Web UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good
elements/nuxeo-browser.html
Outdated
@@ -40,12 +40,16 @@ | |||
|
|||
paper-tabs { | |||
--paper-tabs-selection-bar-color: transparent; | |||
height: auto; | |||
max-height: 42px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be a max-height
instead of a height
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to avoid having a hardcoded height here, but it won't make a huge difference in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with either way, was just trying to understand if there was any reason in particular. For example, if there are no tabs being contributed, what happens with one or the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that edge case, we should go with max-height and make sure height is set to auto so the tab bar won't be visible. Just updated the PR to reflect this.
7c8c487
to
6690922
Compare
⭐ PR built and available in a preview environment nuxeo-nuxeo-web-ui-pr-1260 here |
1 similar comment
⭐ PR built and available in a preview environment nuxeo-nuxeo-web-ui-pr-1260 here |
6754167
to
33bc4f8
Compare
8e073e8
to
424ecd7
Compare
⭐ PR built and available in a preview environment nuxeo-nuxeo-web-ui-pr-1260 here |
424ecd7
to
3069831
Compare
I suggest we go with min-height for tabs to ensure they have space to increase their height if needed. Since having no tabs is probably an edge case, let's keep it as it is. If needed, later we can always check if the |
⭐ PR built and available in a preview environment nuxeo-nuxeo-web-ui-pr-1260 here |
No description provided.