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.
This commit is contained in:
parent
860e2ce7ca
commit
fc648a949a
9 changed files with 49 additions and 27 deletions
|
@ -1,5 +1,5 @@
|
|||
#tabs-deck {
|
||||
min-width: $min-width-collections-pane + $min-width-items-pane;
|
||||
min-width: $min-width-tabs-deck;
|
||||
|
||||
& > :not(.deck-selected) {
|
||||
// Hide all sub-trees that are in the invisible tab deck
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#zotero-items-pane-container {
|
||||
min-width: $min-width-items-pane;
|
||||
height: 150px;
|
||||
min-height: 200px;
|
||||
min-height: $min-height-items-pane;
|
||||
}
|
||||
|
||||
#zotero-items-pane {
|
||||
|
|
|
@ -3,10 +3,14 @@
|
|||
}
|
||||
|
||||
#main-window {
|
||||
min-width: $min-width-collections-pane + $min-width-items-pane + $min-width-item-pane + $width-sidenav;
|
||||
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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.toolbar {
|
||||
height: 41px !important; /* Hard-code this to fix toolbar icon compression on Linux */
|
||||
min-height: 41px; /* Needed to prevent squashing by stretched tag selector */
|
||||
height: $height-toolbar !important; /* Hard-code this to fix toolbar icon compression on Linux */
|
||||
min-height: $height-toolbar; /* Needed to prevent squashing by stretched tag selector */
|
||||
margin: 0;
|
||||
padding: 0px 8px 0px 8px;
|
||||
min-width: 1px;
|
||||
|
@ -121,4 +121,4 @@ toolbox {
|
|||
background: Menu;
|
||||
appearance: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue