Open tabs menu: Move margin/padding to SCSS

This commit is contained in:
Abe Jellinek 2024-01-24 15:10:08 -05:00 committed by Dan Stillman
parent 873c87956c
commit 608b732fbb
2 changed files with 5 additions and 2 deletions

View file

@ -991,8 +991,6 @@ var Zotero_Tabs = new function () {
}; };
this.handleTabsMenuShown = function (_) { this.handleTabsMenuShown = function (_) {
// Default panel's padding is inside of a shadow dom, so it's easier to cancel it here
this.tabsMenuPanel.shadowRoot.firstChild.style = 'padding: 0px !important; margin: 0px !important';
focusTabsMenuEntry(0); focusTabsMenuEntry(0);
}; };

View file

@ -1,3 +1,8 @@
#zotero-tabs-menu-panel::part(content) {
padding: 0;
margin: 0;
}
#zotero-tabs-menu-wrapper { #zotero-tabs-menu-wrapper {
background: var(--material-sidepane); background: var(--material-sidepane);
padding: 7px; padding: 7px;