mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix(mermaid): split on vertical layout
This commit is contained in:
		| @@ -164,8 +164,13 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget { | |||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         let elements = [ this.$firstCol[0], this.$secondCol[0] ]; | ||||||
|  |         if (this.layoutOrientation === "vertical") { | ||||||
|  |             elements.reverse(); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         this.splitInstance?.destroy(); |         this.splitInstance?.destroy(); | ||||||
|         this.splitInstance = Split([ this.$firstCol[0], this.$secondCol[0] ], { |         this.splitInstance = Split(elements, { | ||||||
|             sizes: [ 50, 50 ], |             sizes: [ 50, 50 ], | ||||||
|             direction: this.layoutOrientation, |             direction: this.layoutOrientation, | ||||||
|             gutterSize: DEFAULT_GUTTER_SIZE, |             gutterSize: DEFAULT_GUTTER_SIZE, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user