Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/common/StatCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

truncate alone often won’t actually ellipsize inside a flex row because flex items default to min-width: auto (can’t shrink below content). Since .stat-value is rendered as a flex item next to the trend <span>, long values may still overflow instead of truncating. Consider adding min-w-0 (and optionally flex-1 / max-w-full) to .stat-value or to the flex container’s children so truncation reliably works.

Suggested change
@apply text-2xl font-bold text-gray-900 dark:text-white truncate;
@apply text-2xl font-bold text-gray-900 dark:text-white truncate min-w-0 max-w-full;

Copilot uses AI. Check for mistakes.
}

.stat-label {
Expand Down
Loading