fix: default variant changed and truncation added

This commit is contained in:
Csongor Czezar
2026-01-02 12:51:46 -08:00
parent d94476a7df
commit 03186ceaf5
4 changed files with 20 additions and 22 deletions

View File

@@ -1,10 +1,12 @@
<template>
<WidgetLayoutField :widget="widgetWithStyle">
<!-- Use ToggleGroup when explicit labels are provided -->
<!-- The variant attribute is not necessary here because the default is secondary -->
<!-- It was still added to show that a variant (3) can be explicitly set -->
<ToggleGroup
v-if="hasLabels"
type="single"
variant="primary"
variant="secondary"
:model-value="toggleGroupValue"
class="w-full mb-[-0.5rem]"
@update:model-value="handleToggleGroupChange"