+
@@ -24,7 +24,7 @@ const TPL = `\
height: 100%;
}
- .note-detail-split-first-col {
+ .note-detail-split-editor-col {
display: flex;
}
@@ -49,7 +49,7 @@ const TPL = `\
/* Horizontal layout */
- .note-detail-split.split-horizontal > .note-detail-split-second-col {
+ .note-detail-split.split-horizontal > .note-detail-split-preview-col {
border-left: 1px solid var(--main-border-color);
}
@@ -62,7 +62,7 @@ const TPL = `\
height: 100%;
}
- .note-detail-split.split-horizontal .note-detail-split-first-col {
+ .note-detail-split.split-horizontal .note-detail-split-editor-col {
flex-direction: column;
}
@@ -77,13 +77,19 @@ const TPL = `\
height: 50%;
}
- .note-detail-split.split-vertical > .note-detail-split-first-col {
+ .note-detail-split.split-vertical > .note-detail-split-editor-col {
border-top: 1px solid var(--main-border-color);
}
- .note-detail-split.split-vertical .note-detail-split-second-col {
+ .note-detail-split.split-vertical .note-detail-split-preview-col {
order: -1;
}
+
+ /* Read-only view */
+
+ .note-detail-split.split-read-only .note-detail-split-preview-col {
+ width: 100%;
+ }
`;
@@ -102,12 +108,13 @@ export default abstract class AbstractSplitTypeWidget extends TypeWidget {
private splitInstance?: Split.Instance;
protected $preview!: JQuery