[#181] change default panel heights based on some user feedback

This commit is contained in:
Robin Scholtes 2023-05-01 14:02:18 +12:00
parent 89c1ab12ab
commit 093a3c4b77
2 changed files with 3 additions and 8 deletions

View file

@ -333,13 +333,7 @@ class App {
}
/**
* Set mobile layout.
*
* A note: there is some code repetition here ( re setDesktopLayout ),
* but I found some lingering gutters or odd behaviour on window resizing that is
* resolved by always destroying and rebuilding the splitters. Now setDesktopLayout
* and setMobileLayout can be called on window resizing events and the switch
* gets handled smoothly.
* Set mobile layout
*/
setMobileLayout() {
if (this.columnSplitter) this.columnSplitter.destroy();
@ -353,6 +347,7 @@ class App {
});
this.ioSplitter = Split(["#input", "#output"], {
sizes: [40,60],
direction: "vertical",
gutterSize: 0,
});

View file

@ -10,7 +10,7 @@
--banner-height: 40px;
--controls-height: 70px;
--workspace-height: calc( 100vh - var(--banner-height) - var(--controls-height));
--recipe-height: 16vh;
--recipe-height: 38vh;
--operations-height: 89px;
--io-height: calc(100vh - var(--banner-height) - var(--controls-height) - var(--recipe-height) - var(--operations-height));
}