Skip to content

Commit

Permalink
fix: compatible with el-row display
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Jul 8, 2024
1 parent e5ca16d commit a1a0947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CodemirrorEditor/CssEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {

<template>
<transition enter-active-class="bounceInRight">
<el-col v-show="showCssEditor" :span="12" class="cssEditor-wrapper">
<el-col v-show="showCssEditor" :span="8" class="cssEditor-wrapper">
<textarea
id="cssEditor"
type="textarea"
Expand Down
4 changes: 2 additions & 2 deletions src/views/CodemirrorEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ export default {
<el-col
ref="codeMirrorWrapper"
:style="{ order: store.isEditOnLeft ? 0 : 1 }"
:span="12"
:span="showCssEditor ? 8 : 12"
class="codeMirror-wrapper"
@contextmenu.prevent="openMenu"
>
Expand All @@ -575,7 +575,7 @@ export default {
<el-col
id="preview"
ref="preview"
:span="12"
:span="showCssEditor ? 8 : 12"
class="preview-wrapper"
:class="{
'preview-wrapper_night': nightMode && isCoping,
Expand Down

0 comments on commit a1a0947

Please sign in to comment.