mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 06:57:12 -04:00
[#181] change default panel heights based on some user feedback
This commit is contained in:
parent
89c1ab12ab
commit
093a3c4b77
2 changed files with 3 additions and 8 deletions
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue