mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
fix(analysis): wrap section filters by content width
This commit is contained in:
1 parent
9438cb2a23
commit
b2da72ac6f
1 file changed
+3
-3
@@ -105,12 +105,12 @@ watch(
|
|||||||
'flex justify-between overflow-x-auto',
|
'flex justify-between overflow-x-auto',
|
||||||
bordered !== false ? 'border-b border-gray-200/50 dark:border-gray-800/50' : '',
|
bordered !== false ? 'border-b border-gray-200/50 dark:border-gray-800/50' : '',
|
||||||
mode === 'section'
|
mode === 'section'
|
||||||
? 'flex-col items-stretch gap-2 pl-7 pr-6 pt-3 xl:flex-row xl:items-center'
|
? 'flex-wrap items-center gap-y-2 pl-7 pr-6 pt-3'
|
||||||
: ['items-center', size === 'sm' ? 'px-3' : 'px-6'],
|
: ['items-center', size === 'sm' ? 'px-3' : 'px-6'],
|
||||||
],
|
],
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<div ref="containerRef" class="relative" :class="[isVertical ? 'flex flex-col gap-1' : 'flex gap-4 pb-1']">
|
<div ref="containerRef" class="relative" :class="[isVertical ? 'flex flex-col gap-1' : 'flex shrink-0 gap-4 pb-1']">
|
||||||
<button
|
<button
|
||||||
v-for="tab in items"
|
v-for="tab in items"
|
||||||
:key="tab.id"
|
:key="tab.id"
|
||||||
@@ -136,7 +136,7 @@ watch(
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-if="!isVertical && $slots.right">
|
<template v-if="!isVertical && $slots.right">
|
||||||
<div v-if="mode === 'section'" class="flex w-full min-w-0 items-center xl:w-auto xl:justify-end">
|
<div v-if="mode === 'section'" class="flex grow items-center justify-end">
|
||||||
<slot name="right" />
|
<slot name="right" />
|
||||||
</div>
|
</div>
|
||||||
<slot v-else name="right" />
|
<slot v-else name="right" />
|
||||||
|
|||||||
Reference in new issue
Block a user