mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] fix selected / checkmark classes on operation list, based on the current recipe list. Update TODO
This commit is contained in:
parent
ccc5095763
commit
5e9aa5cd09
5 changed files with 82 additions and 13 deletions
|
@ -27,16 +27,13 @@ class WindowWaiter {
|
|||
* continuous resetting).
|
||||
*/
|
||||
windowResize() {
|
||||
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();
|
||||
|
||||
if ( window.innerWidth >= this.app.breakpoint ) {
|
||||
this.app.setDesktopLayout(false);
|
||||
this.app.setDesktopLayout(false); //@TODO: use setDesktopUI() func
|
||||
} else {
|
||||
this.app.setMobileLayout();
|
||||
this.app.setMobileLayout(); //@TODO: use mobileUI() if needed
|
||||
}
|
||||
|
||||
// we must repopulate the op lists to handle sortable, draggable, popovers etc.
|
||||
debounce(this.app.populateOperationsList, 200, "windowResize", this.app, [])();
|
||||
debounce(this.app.adjustComponentSizes, 200, "windowResize", this.app, [])();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue