feat: Add toggle compact mode to the default placements, b=no-bug, c=common, glance

This commit is contained in:
mr. m
2025-10-12 00:31:05 +02:00
parent c398a10064
commit ac5f43c15b
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export var ZenCustomizableUI = new (class {
'zen-sidebar-top-buttons', 'zen-sidebar-top-buttons',
{ {
type: this.TYPE_TOOLBAR, type: this.TYPE_TOOLBAR,
defaultPlacements: [], defaultPlacements: ['zen-toggle-compact-mode'],
defaultCollapsed: null, defaultCollapsed: null,
overflowable: true, overflowable: true,
}, },

View File

@@ -51,6 +51,7 @@ panel[type='arrow']:not(#feature-callout) {
} }
@media (-moz-platform: macos) { @media (-moz-platform: macos) {
border: 0px transparent !important;
appearance: auto !important; appearance: auto !important;
-moz-default-appearance: menupopup; -moz-default-appearance: menupopup;
/* We set the default background here, rather than on ::part(content), /* We set the default background here, rather than on ::part(content),
@@ -60,7 +61,6 @@ panel[type='arrow']:not(#feature-callout) {
--panel-shadow-margin: 0px !important; --panel-shadow-margin: 0px !important;
--panel-background: transparent !important; --panel-background: transparent !important;
--panel-border-color: transparent; --panel-border-color: transparent;
border: 0 !important;
&::part(content) { &::part(content) {
background-color: transparent !important; background-color: transparent !important;

View File

@@ -922,7 +922,7 @@
{ {
duration: 0.3, duration: 0.3,
easing: 'easeInOut', easing: 'easeInOut',
bounce: 0.1, bounce: 0,
} }
); );
} }