mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-18 04:08:51 -06:00
fix(mermaid): enforce vertical layout on mobile
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user