File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ provide('theme', themeComputed)
120
120
const { copy, copied } = useClipboard ({ source: store .state .activeFile .code , legacy: true })
121
121
122
122
const isCollapse = ref (props .collapse )
123
+ const minHeightForCode = computed (() => isCollapse .value ? ' 0' : ' var(--vue-preview-editor-min-height)' )
123
124
const maxHeightForCode = computed (() => isCollapse .value ? ' 0' : ' var(--vue-preview-editor-max-height)' )
124
125
125
126
const previewBodyStyle = computed <Partial <CSSStyleDeclaration >>(() => typeof props .previewBodyStyle === ' string' ? JSON .parse (decodeURIComponent (props .previewBodyStyle )) : props .previewBodyStyle )
@@ -168,6 +169,7 @@ const isHover = useElementHover(vuePreviewContainerRef)
168
169
--vue-preview-color-icon-bg-hover : hsl (220 , 95% , 95% );
169
170
--vue-preview-color-model-bg : hsla (0 , 0% , 80% , 0.1 );
170
171
--vue-preview-editor-max-height : 50vh ;
172
+ --vue-preview-editor-min-height : 200px ;
171
173
}
172
174
</style >
173
175
@@ -253,6 +255,7 @@ const isHover = useElementHover(vuePreviewContainerRef)
253
255
box-sizing : border-box ;
254
256
overflow-y : scroll ;
255
257
border-radius : 0 0 var (--vue-preview-radius ) var (--vue-preview-radius );
258
+ min-height : v-bind (' minHeightForCode' );
256
259
max-height : v-bind (' maxHeightForCode' );
257
260
transition : max-height 0.3s ;
258
261
}
You can’t perform that action at this time.
0 commit comments