mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix(mermaid): enforce vertical layout on mobile
This commit is contained in:
		
							parent
							
								
									5282f9f0bf
								
							
						
					
					
						commit
						9e75c32ded
					
				@ -184,7 +184,7 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Vertical vs horizontal layout
 | 
			
		||||
        const layoutOrientation = options.get("splitEditorOrientation") ?? "horizontal";
 | 
			
		||||
        const layoutOrientation = (!utils.isMobile() ? options.get("splitEditorOrientation") ?? "horizontal" : "vertical");
 | 
			
		||||
        if (this.layoutOrientation === layoutOrientation && this.isReadOnly === isReadOnly) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user