fix(accounts): constrain long plan badges to available width

Truncate overflowing plan names and show the full display name on hover while preserving the existing subscription column width.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-10-06 13:52:29 +08:00
co-authored by Codex
parent 102d064ab0
commit 7505459ece
@@ -53,10 +53,10 @@ const paletteClass = computed(() => {
<template>
<span
class="inline-flex shrink-0 items-center justify-center whitespace-nowrap leading-none shadow-cp-tertiary"
class="inline-flex min-w-0 max-w-full items-center justify-center whitespace-nowrap leading-none shadow-cp-tertiary"
:class="[sizeClass, paletteClass]"
:title="rawPlanType || undefined"
:title="displayText || undefined"
>
<span>{{ displayText }}</span>
<span class="truncate">{{ displayText }}</span>
</span>
</template>