feat(ui) : TabList — prop maxWidth (défaut 1100) pour le bloc d'onglets fenêtré

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-04 08:26:34 +02:00
parent 912a370444
commit 1a52582eda
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -17,7 +17,8 @@
<div
role="tablist"
class="flex flex-1 max-w-[1200px] justify-center gap-[60px]"
class="flex flex-1 justify-center gap-[60px]"
:style="{ maxWidth: `${maxWidth}px` }"
>
<button
v-for="tab in visibleTabs"
@@ -132,10 +133,12 @@ const props = withDefaults(defineProps<{
modelValue?: string
id?: string
maxVisibleTabs?: number
maxWidth?: number
}>(), {
modelValue: undefined,
id: '',
maxVisibleTabs: undefined,
maxWidth: 1100,
})
const emit = defineEmits<{