Skip to content

Commit

Permalink
fix: no max height in preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Dec 20, 2023
1 parent 09508eb commit 5865498
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/MarkdownUi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ const markdownEditorMaxHeight = computed((): string => `${props.editorMaxHeight}
}
}
&.mode-edit,
&.mode-split {
.markdown-panes {
height: v-bind('markdownEditorMaxHeight'); // max-height in edit and split modes
}
}
&.mode-edit,
&.mode-split,
&.mode-preview {
Expand All @@ -396,8 +403,6 @@ const markdownEditorMaxHeight = computed((): string => `${props.editorMaxHeight}
}
.markdown-panes {
height: v-bind('markdownEditorMaxHeight'); // max-height in edit mode
.markdown-preview {
border: $kui-border-width-10 solid $kui-color-border;
border-radius: var(--kui-border-radius-30, $kui-border-radius-30);
Expand Down

0 comments on commit 5865498

Please sign in to comment.