Skip to content

Commit ec7e4ea

Browse files
committed
Missed improvments to markdown editor
1 parent e2385c5 commit ec7e4ea

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

frontend/app/components/site/md-editor.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<m-input>
3-
<m-tabs :class="classes">
3+
<m-tabs :class="classes" :style="{height: `${parseInt(rows as string) * 24}px`}">
44
<m-tab v-if="!splitMode" name="write" :title="$t('write_tab')">
5-
<md-editor-textarea ref="textAreaComp" v-model="vm" :label-id="labelId" :rows="rows" v-bind="$attrs" @keydown="onKeyDown"/>
5+
<md-editor-textarea ref="textAreaComp" v-model="vm" :label-id="labelId" :rows="rows" @keydown="onKeyDown"/>
66
</m-tab>
7-
<m-tab v-if="!splitMode" name="preview" :title="$t('preview_tab')" class="preview content-block p-2" >
8-
<md-content :text="vm"/>
7+
<m-tab v-if="!splitMode" name="preview" :title="$t('preview_tab')" class="preview content-block">
8+
<md-content :text="vm" :padding="6"/>
99
</m-tab>
1010
<m-tab v-else name="split-mode" :title="$t('split_mode_tab')">
1111
<m-flex class="overflow-hidden h-full" gap="2">
1212
<md-editor-textarea ref="textAreaComp" v-model="vm" :label-id="labelId" :rows="rows" style="flex:1;" @keydown="onKeyDown"/>
13-
<div class="preview content-block" ref="mdText">
13+
<div ref="mdText" class="preview content-block">
1414
<md-content :text="vm"/>
1515
</div>
1616
</m-flex>
@@ -127,6 +127,12 @@ watch(fullscreen, status => {
127127
.tab-panel, .tab-panels {
128128
height: 100%;
129129
}
130+
131+
.md-editor .nav-menu-content {
132+
display: flex;
133+
flex-direction: column;
134+
}
135+
130136
</style>
131137

132138
<style scoped>

0 commit comments

Comments
 (0)