Skip to content

Commit

Permalink
Fix: Menu - Linux's select menu padding
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jul 7, 2022
1 parent 217af2e commit 129051c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -3448,6 +3448,12 @@
#ContentSelectDropdown > menupopup > menuitem {
padding-block: 0 !important;
}
@media (-moz-gtk-csd-available) {
#ContentSelectDropdown > menupopup > menucaption,
#ContentSelectDropdown > menupopup > menuitem {
padding-block: var(--menu-padding) !important;
}
}

@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") {
:root:not([uidensity="touch"]) .menu-text,
Expand Down
4 changes: 4 additions & 0 deletions src/padding/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ menupopup > menu {
#ContentSelectDropdown > menupopup > menucaption,
#ContentSelectDropdown > menupopup > menuitem {
padding-block: 0 !important;

@include OS($linux) {
padding-block: var(--menu-padding) !important;
}
}

@include OS($mac) {
Expand Down

0 comments on commit 129051c

Please sign in to comment.