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