mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-15 14:26:12 +00:00
Adjust sidebar width calculation in non-compact mode and update compact mode CSS for proper width handling
This commit is contained in:
@@ -656,7 +656,9 @@ var gZenVerticalTabsManager = {
|
||||
// Always move the splitter next to the sidebar
|
||||
this.navigatorToolbox.after(document.getElementById('zen-sidebar-splitter'));
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
gZenCompactModeManager.getAndApplySidebarWidth();
|
||||
if (!isCompactMode) {
|
||||
gZenCompactModeManager.getAndApplySidebarWidth();
|
||||
}
|
||||
gZenUIManager.updateTabsToolbar();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
@@ -117,7 +117,7 @@
|
||||
min-width: var(--zen-toolbox-min-width);
|
||||
|
||||
:root[zen-sidebar-expanded='true'] & {
|
||||
width: var(--zen-sidebar-width);
|
||||
width: calc(var(--zen-sidebar-width) + var(--zen-toolbox-padding));
|
||||
}
|
||||
|
||||
:root[zen-single-toolbar='true'] {
|
||||
|
Reference in New Issue
Block a user