Skip to content

Commit 42a6a09

Browse files
committed
Fix: Global Menubar - Padding at windows #1103
1 parent bfc9d94 commit 42a6a09

File tree

3 files changed

+45
-18
lines changed

3 files changed

+45
-18
lines changed

css/leptonChrome.css

Lines changed: 22 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/leptonChromeESR.css

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/icons/layout/_menu.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ $_layoutCommonMenus: (
8181
menupopup {
8282
--menuitem-image: none; /* Prevent Image Inheritance */
8383
}
84+
& > :is(.menubar-text, .menu-text) {
85+
@include OS($win) {
86+
transform: translateY(-1px) !important; /* Fix menu top padding position */
87+
padding-inline-start: 0.3em !important;
88+
}
89+
@include OS($linux) {
90+
@include _layout_init_linux;
91+
}
92+
}
8493
@include NotOption("userChrome.padding.global_menubar") {
8594
padding-block: 2px !important;
8695
}
@@ -113,10 +122,6 @@ $_layoutCommonMenus: (
113122
/* Padding - Linux */
114123
@include OS($linux) {
115124
@include _layout_root_linux;
116-
117-
#{$_globalMenus} > :is(.menubar-text, .menu-text) {
118-
@include _layout_init_linux;
119-
}
120125
}
121126

122127
/* Padding - Mac */

0 commit comments

Comments
 (0)