File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/client/src/pages Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -259,11 +259,16 @@ watchDebounced(filterName, (v) => {
259
259
}, { debounce: 300 })
260
260
261
261
const devtoolsState = useDevToolsState ()
262
+
263
+ // responsive horizontal layout
264
+ const splitpanesRef = ref <HTMLDivElement >()
265
+ const { width : splitpanesWidth } = useElementSize (splitpanesRef )
266
+ const horizontal = computed (() => splitpanesWidth .value < 700 )
262
267
</script >
263
268
264
269
<template >
265
270
<PanelGrids h-screen >
266
- <Splitpanes >
271
+ <Splitpanes ref = " splitpanesRef " :horizontal = " horizontal " >
267
272
<Pane flex flex-col border =" r base" >
268
273
<div w-full flex gap2 px2 py2 >
269
274
<VueInput v-if =" loaded" v-model =" filterName" :loading-debounce-time =" 250" :loading =" !filtered" placeholder =" Find components..." flex-1 />
You can’t perform that action at this time.
0 commit comments