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) => {
259259}, { debounce: 300 })
260260
261261const 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 )
262267 </script >
263268
264269<template >
265270 <PanelGrids h-screen >
266- <Splitpanes >
271+ <Splitpanes ref = " splitpanesRef " :horizontal = " horizontal " >
267272 <Pane flex flex-col border =" r base" >
268273 <div w-full flex gap2 px2 py2 >
269274 <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