Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
be56a282
Commit
be56a282
authored
Feb 13, 2026
by
wucm667
Browse files
修复:StatCard 数值溢出问题
- 添加 title 属性,鼠标悬停时显示完整数值 - 添加 truncate 类防止数值溢出 - 优化长数值的显示效果
parent
c7b42148
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/src/components/common/StatCard.vue
View file @
be56a282
...
...
@@ -6,7 +6,7 @@
<div
class=
"min-w-0 flex-1"
>
<p
class=
"stat-label truncate"
>
{{
title
}}
</p>
<div
class=
"mt-1 flex items-baseline gap-2"
>
<p
class=
"stat-value"
>
{{
formattedValue
}}
</p>
<p
class=
"stat-value"
:title=
"String(formattedValue)"
>
{{
formattedValue
}}
</p>
<span
v-if=
"change !== undefined"
:class=
"['stat-trend', trendClass]"
>
<Icon
v-if=
"changeType !== 'neutral'"
...
...
frontend/src/style.css
View file @
be56a282
...
...
@@ -243,7 +243,7 @@
}
.stat-value
{
@apply
text-2xl
font-bold
text-gray-900
dark
:
text-white
;
@apply
text-2xl
font-bold
text-gray-900
dark
:
text-white
truncate
;
}
.stat-label
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment