fix(TabsTrigger): wrap slot content in a span with truncate class for better text handling

This commit is contained in:
romanhrynevych 2024-08-30 17:21:49 +03:00
parent 3bf4e4e561
commit 82545d224b
2 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,8 @@ const forwardedProps = useForwardProps(delegatedProps)
props.class,
)"
>
<slot />
<span class="truncate">
<slot />
</span>
</TabsTrigger>
</template>

View File

@ -22,6 +22,8 @@ const forwardedProps = useForwardProps(delegatedProps)
props.class,
)"
>
<slot />
<span class="truncate">
<slot />
</span>
</TabsTrigger>
</template>