Skip to content

Commit

Permalink
Fix: Centered - Start margin at tab content #761
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Oct 3, 2023
1 parent 83fd2fd commit 9429288
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 17 deletions.
22 changes: 16 additions & 6 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 16 additions & 6 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions src/centered/tab/_content.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
.tab-icon-stack {
@include BoxFlex(1);
justify-content: end;
margin-inline-start: auto;
}
.tab-label-container {
max-width: min-content;
margin-inline-end: auto;
}
@include Option("userChrome.tab.close_button_at_hover") {
.tabbrowser-tab:not(:hover, [pinned]) > .tab-stack > .tab-content > .tab-close-button {
padding-inline-start: 6px !important; /* Original: 0px */
width: 24px !important; /* Original: 17px */
}
}
8 changes: 5 additions & 3 deletions src/centered/tab/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.tabbrowser-tab[selected]:not(:hover) .tab-label-container:not([textoverflow]),
.tabbrowser-tab:not(:hover,[pinned]) .tab-label-container:not([textoverflow]) {
margin-inline-end: 5px;
@include Option("userChrome.centered.tab.label") {
.tabbrowser-tab[selected]:not(:hover) .tab-label-container:not([textoverflow]),
.tabbrowser-tab:not(:hover,[pinned]) .tab-label-container:not([textoverflow]) {
margin-inline-end: 5px;
}
}

@include Option("userChrome.tab.close_button_at_hover") {
Expand Down

0 comments on commit 9429288

Please sign in to comment.