mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	client/settings/disable shadows: react to the option change
This commit is contained in:
		
							parent
							
								
									7c78d749de
								
							
						
					
					
						commit
						7468d6147a
					
				@ -31,6 +31,7 @@ export default class RootContainer extends FlexContainer<BasicWidget> {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.#setMotion(options.is("motionEnabled"));
 | 
			
		||||
        this.#setShadows(options.is("shadowsEnabled"));
 | 
			
		||||
 | 
			
		||||
        return super.render();
 | 
			
		||||
    }
 | 
			
		||||
@ -39,6 +40,10 @@ export default class RootContainer extends FlexContainer<BasicWidget> {
 | 
			
		||||
        if (loadResults.isOptionReloaded("motionEnabled")) {
 | 
			
		||||
            this.#setMotion(options.is("motionEnabled"));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (loadResults.isOptionReloaded("shadowsEnabled")) {
 | 
			
		||||
            this.#setShadows(options.is("shadowsEnabled"));
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #onMobileResize() {
 | 
			
		||||
@ -51,6 +56,10 @@ export default class RootContainer extends FlexContainer<BasicWidget> {
 | 
			
		||||
        document.body.classList.toggle("motion-disabled", !enabled);
 | 
			
		||||
        jQuery.fx.off = !enabled;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #setShadows(enabled: boolean) {
 | 
			
		||||
        document.body.classList.toggle("shadows-disabled", !enabled);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function getViewportHeight() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user