refactor: 个人中心 下拉卡片 昵称超长省略显示

This commit is contained in:
dap
2025-06-18 10:38:55 +08:00
parent c09c089265
commit aec123a834
2 changed files with 7 additions and 1 deletions

View File

@@ -211,7 +211,12 @@ if (enableShortcutKey.value) {
v-if="tagText || text || $slots.tagText"
class="text-foreground mb-1 flex items-center text-sm font-medium"
>
{{ text }}
<div
class="max-w-[100px] overflow-hidden text-ellipsis break-keep"
:title="text"
>
{{ text }}
</div>
<slot name="tagText">
<Badge v-if="tagText" class="ml-2 text-green-400">
{{ tagText }}