mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-29 14:38:37 +00:00
Refactor ZenStartup to update default placements for sidebar buttons and improve sidebar buttons customization
This commit is contained in:
@@ -202,11 +202,11 @@
|
||||
const defaultSidebarIcons = [
|
||||
'zen-sidepanel-button',
|
||||
'zen-workspaces-button',
|
||||
'vertical-tabs-newtab-button'
|
||||
'new-tab-button'
|
||||
];
|
||||
for (let id of defaultSidebarIcons) {
|
||||
if (id === 'zen-workspaces-button') continue;
|
||||
const elem = document.getElementById(id);
|
||||
if (id === 'zen-workspaces-button' || !elem) continue;
|
||||
elem.setAttribute('removable', 'true');
|
||||
}
|
||||
CustomizableUI.registerArea(
|
||||
|
@@ -35,6 +35,7 @@
|
||||
|
||||
:not([inDOMFullscreen='true']) #appcontent {
|
||||
overflow: hidden;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
:not([inDOMFullscreen='true']) #appcontent,
|
||||
|
@@ -34,7 +34,6 @@
|
||||
padding-top: var(--zen-toolbox-top-align);
|
||||
padding-bottom: var(--zen-element-separation);
|
||||
|
||||
margin-top: -4px !important;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@@ -530,12 +529,15 @@
|
||||
display: none;
|
||||
}*/
|
||||
|
||||
:root[customizing] #TabsToolbar > * {
|
||||
:root[customizing] #TabsToolbar > *,
|
||||
:root[customizing] #TabsToolbar-customization-target {
|
||||
min-width: unset !important;
|
||||
}
|
||||
|
||||
/* Mark: Sidebar top buttons */
|
||||
#zen-sidebar-top-buttons {
|
||||
order: -1;
|
||||
|
||||
min-width: unset !important;
|
||||
--toolbarbutton-inner-padding: var(--zen-toolbar-button-inner-padding) !important;
|
||||
|
||||
@@ -544,7 +546,11 @@
|
||||
align-items: center;
|
||||
|
||||
#nav-bar:has(&) & {
|
||||
padding-inline-start: calc(var(--zen-toolbox-padding) + var(--toolbarbutton-outer-padding)) !important;
|
||||
padding-inline-start: calc(var(--zen-toolbox-padding) + 2px);
|
||||
}
|
||||
|
||||
#browser:has(#navigator-toolbox[zen-right-side='true']) & {
|
||||
padding-inline-start: calc(var(--zen-toolbox-padding) - var(--toolbarbutton-outer-padding)) !important;
|
||||
}
|
||||
|
||||
& toolbarbutton {
|
||||
|
Reference in New Issue
Block a user