We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7941e6 commit deb1788Copy full SHA for deb1788
packages/client/src/pages/components.vue
@@ -259,11 +259,16 @@ watchDebounced(filterName, (v) => {
259
}, { debounce: 300 })
260
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)
267
</script>
268
269
<template>
270
<PanelGrids h-screen>
- <Splitpanes>
271
+ <Splitpanes ref="splitpanesRef" :horizontal="horizontal">
272
<Pane flex flex-col border="r base">
273
<div w-full flex gap2 px2 py2>
274
<VueInput v-if="loaded" v-model="filterName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." flex-1 />
0 commit comments