Skip to content

Commit

Permalink
Fix: Centered Label - overflowing and unwinding
Browse files Browse the repository at this point in the history
Always include `padding-inline-end` at label self.
It's prevent recalculation.
  • Loading branch information
black7375 committed Jul 7, 2022
1 parent f5c5c01 commit 8ffcd54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -5182,8 +5182,9 @@

#tabbrowser-tabs[closebuttons="activetab"]
.tabbrowser-tab:not([selected]):not(:hover, [pinned])
.tab-label-container:not([textoverflow]) {
margin-inline-end: 19px;
.tab-label-container
label {
padding-inline-end: 19px;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/tabbar/_centered_label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not(:hover,[pinned]) .tab-label-container:not([textoverflow]) {
margin-inline-end: 1px;
}
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected]):not(:hover, [pinned]) .tab-label-container:not([textoverflow]) {
margin-inline-end: 19px;
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected]):not(:hover, [pinned]) .tab-label-container label {
padding-inline-end: 19px;
}
}

0 comments on commit 8ffcd54

Please sign in to comment.