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
47194326
Unverified
Commit
47194326
authored
Feb 13, 2026
by
Wesley Liddick
Committed by
GitHub
Feb 13, 2026
Browse files
Merge pull request #573 from wucm667/fix/stat-card-value-overflow
修复:StatCard 数值溢出问题
parents
28a5e2f0
be56a282
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/src/components/common/StatCard.vue
View file @
47194326
...
...
@@ -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 @
47194326
...
...
@@ -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