Adjust sidebar width calculation in non-compact mode and update compact mode CSS for proper width handling

This commit is contained in:
mr. m
2025-04-11 01:00:47 +02:00
parent 713f1486c3
commit e65b786b46
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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'] {