File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const containerRef = useTemplateRef('container')
9
9
const previewRef = inject (injectKeyPreviewRef )!
10
10
11
11
// mobile only
12
- const { store, splitPaneOptions } = inject (injectKeyProps )!
12
+ const { store, layoutReverse, splitPaneOptions } = inject (injectKeyProps )!
13
13
14
14
const state = reactive ({
15
15
dragging: false ,
@@ -66,6 +66,7 @@ function changeViewSize() {
66
66
:class =" {
67
67
dragging: state.dragging,
68
68
'show-output': store.showOutput,
69
+ reverse: layoutReverse,
69
70
vertical: isVertical,
70
71
}"
71
72
@mousemove =" dragMove"
@@ -201,21 +202,19 @@ function changeViewSize() {
201
202
.split-pane .toggler {
202
203
display : block ;
203
204
}
204
- .split-pane .right {
205
+ .split-pane .right ,
206
+ .split-pane.show-output.reverse .right ,
207
+ .split-pane.show-output .left ,
208
+ .split-pane.reverse .left {
205
209
z-index : -1 ;
206
210
pointer-events : none ;
207
211
}
208
- .split-pane .left {
212
+ .split-pane .left ,
213
+ .split-pane.show-output.reverse .left ,
214
+ .split-pane.show-output .right ,
215
+ .split-pane.reverse .right {
209
216
z-index : 0 ;
210
217
pointer-events : all ;
211
218
}
212
- .split-pane.show-output .right {
213
- z-index : 0 ;
214
- pointer-events : all ;
215
- }
216
- .split-pane.show-output .left {
217
- z-index : -1 ;
218
- pointer-events : none ;
219
- }
220
219
}
221
220
</style >
You can’t perform that action at this time.
0 commit comments