mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] set mobile and desktop UI on init and window resize without errors
This commit is contained in:
parent
f1340f1249
commit
6e4a813e1f
4 changed files with 51 additions and 20 deletions
|
@ -28,6 +28,12 @@ class WindowWaiter {
|
|||
*/
|
||||
windowResize() {
|
||||
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();
|
||||
|
||||
if ( window.innerWidth >= this.app.breakpoint ) {
|
||||
this.app.resetLayout();
|
||||
} else {
|
||||
this.app.setMobileLayout();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue