zotero/scss/components/_mainWindow.scss
Abe Jellinek fc648a949a
Set main window min-width/height dynamically (#3841)
Correctly calculates minimums when window is too small, so it grows
when the collection tree is made bigger.
2024-04-13 03:44:17 -04:00

25 lines
569 B
SCSS

:is(panel)::part(content) {
--panel-background: var(--material-toolbar);
}
#main-window {
min-width: max(var(--width-of-fixed-components) + $min-width-items-pane, $min-width-tabs-deck);
min-height: 300px;
}
#main-window.stacked {
min-height: calc(var(--height-of-fixed-components) + $min-height-items-pane + $height-toolbar);
}
#zotero-pane {
min-width: 0;
min-height: 0;
}
#zotero-pane-stack > hbox {
// Let window chrome, tabs, and toolbar shrink even when sidebars overflow
min-width: 0;
}
#browser, #zotero-pane-stack, #zotero-trees {
min-height: 0;
}