[#181] fix selected / checkmark classes on operation list, based on the current recipe list. Update TODO

This commit is contained in:
Robin Scholtes 2023-04-26 23:08:44 +12:00
parent ccc5095763
commit 5e9aa5cd09
5 changed files with 82 additions and 13 deletions

View file

@ -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, [])();
}