fix(mermaid): enforce vertical layout on mobile

This commit is contained in:
Elian Doran 2025-03-22 15:51:21 +02:00
parent 5282f9f0bf
commit 9e75c32ded
No known key found for this signature in database

View File

@ -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;
}