From f44ed17eb05005752573916ed64f3add1c73487c Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sun, 19 May 2024 02:04:17 +0900 Subject: [PATCH] Fix: Padding - Bookmark & History empty align #888 --- css/leptonChrome.css | 12 ++++++++++++ css/leptonChromeESR.css | 5 +++++ src/icons/layout/_panel.scss | 5 +++++ 3 files changed, 22 insertions(+) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index d960653c..4c95fca1 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -10974,6 +10974,11 @@ > .toolbarbutton-text { padding-inline-start: 0 !important; } + #panelMenu_bookmarksMenu .subviewbutton[disabled="true"], + #appMenu_historyMenu .subviewbutton[disabled="true"] { + margin-inline-start: 0 !important; + padding-inline-start: 0 !important; + } #panelMenu_bookmarksMenu .subviewbutton[disabled="true"] .toolbarbutton-text, #appMenu_historyMenu .subviewbutton[disabled="true"] .toolbarbutton-text { padding-inline-start: var(--arrowpanel-menublank-padding) !important; @@ -25599,6 +25604,13 @@ padding-inline-start: 0 !important; } } +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { + #panelMenu_bookmarksMenu .subviewbutton[disabled="true"], + #appMenu_historyMenu .subviewbutton[disabled="true"] { + margin-inline-start: 0 !important; + padding-inline-start: 0 !important; + } +} @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { #panelMenu_bookmarksMenu .subviewbutton[disabled="true"] .toolbarbutton-text, #appMenu_historyMenu .subviewbutton[disabled="true"] .toolbarbutton-text { diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 6c050799..2c5a6098 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -11412,6 +11412,11 @@ > .toolbarbutton-text { padding-inline-start: 0 !important; } + #panelMenu_bookmarksMenu .subviewbutton[disabled="true"], + #appMenu_historyMenu .subviewbutton[disabled="true"] { + margin-inline-start: 0 !important; + padding-inline-start: 0 !important; + } #panelMenu_bookmarksMenu .subviewbutton[disabled="true"] .toolbarbutton-text, #appMenu_historyMenu .subviewbutton[disabled="true"] .toolbarbutton-text { padding-inline-start: var(--arrowpanel-menublank-padding) !important; diff --git a/src/icons/layout/_panel.scss b/src/icons/layout/_panel.scss index a117e10f..ec95758f 100644 --- a/src/icons/layout/_panel.scss +++ b/src/icons/layout/_panel.scss @@ -33,6 +33,11 @@ .toolbaritem-combined-buttons:not(.unified-extensions-item) > .subviewbutton:not(.subviewbutton-iconic) > .toolbarbutton-text { padding-inline-start: 0 !important; } +#panelMenu_bookmarksMenu .subviewbutton[disabled="true"], +#appMenu_historyMenu .subviewbutton[disabled="true"] { + margin-inline-start: 0 !important; + padding-inline-start: 0 !important; +} #panelMenu_bookmarksMenu .subviewbutton[disabled="true"] .toolbarbutton-text, #appMenu_historyMenu .subviewbutton[disabled="true"] .toolbarbutton-text { padding-inline-start: var(--arrowpanel-menublank-padding) !important;