mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix: Incorrectly calculating rest-pane width
This commit is contained in:
		
							parent
							
								
									9682253ced
								
							
						
					
					
						commit
						0d09a7558f
					
				@ -23,7 +23,7 @@ function setupLeftPaneResizer(leftPaneVisible: boolean) {
 | 
				
			|||||||
    // Window resizing causes `window.innerWidth` to change, so `reservedWidth` needs to be recalculated each time.
 | 
					    // Window resizing causes `window.innerWidth` to change, so `reservedWidth` needs to be recalculated each time.
 | 
				
			||||||
    const reservedWidth = reservedPx / window.innerWidth * 100;
 | 
					    const reservedWidth = reservedPx / window.innerWidth * 100;
 | 
				
			||||||
    if (!leftPaneVisible) {
 | 
					    if (!leftPaneVisible) {
 | 
				
			||||||
        $("#rest-pane").css("width", layoutOrientation === "vertical" ? `${(100 - reservedWidth) * 100}%` : "100%");
 | 
					        $("#rest-pane").css("width", layoutOrientation === "vertical" ? `${100 - reservedWidth}%` : "100%");
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user