mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46: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
|
// Always move the splitter next to the sidebar
|
||||||
this.navigatorToolbox.after(document.getElementById('zen-sidebar-splitter'));
|
this.navigatorToolbox.after(document.getElementById('zen-sidebar-splitter'));
|
||||||
window.dispatchEvent(new Event('resize'));
|
window.dispatchEvent(new Event('resize'));
|
||||||
gZenCompactModeManager.getAndApplySidebarWidth();
|
if (!isCompactMode) {
|
||||||
|
gZenCompactModeManager.getAndApplySidebarWidth();
|
||||||
|
}
|
||||||
gZenUIManager.updateTabsToolbar();
|
gZenUIManager.updateTabsToolbar();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
@@ -117,7 +117,7 @@
|
|||||||
min-width: var(--zen-toolbox-min-width);
|
min-width: var(--zen-toolbox-min-width);
|
||||||
|
|
||||||
:root[zen-sidebar-expanded='true'] & {
|
: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'] {
|
:root[zen-single-toolbar='true'] {
|
||||||
|
Reference in New Issue
Block a user