feat(ui): update model update badge to icon-only design

- Change badge from text label to icon-only for cleaner UI
- Adjust CSS for smaller circular badge with centered icon
- Maintain tooltip functionality for accessibility
- Update badge styling to be more compact and visually consistent
This commit is contained in:
Will Miao
2026-01-28 20:42:32 +08:00
parent a78868adce
commit ee25643f68
2 changed files with 15 additions and 11 deletions

View File

@@ -596,18 +596,22 @@
} }
.model-update-badge { .model-update-badge {
display: inline-flex; width: 18px;
align-items: center; height: 18px;
gap: 6px; padding: 0;
padding: 2px 10px; border-radius: 4px;
border-radius: var(--border-radius-xs);
background: var(--badge-update-bg); background: var(--badge-update-bg);
color: var(--badge-update-text); color: var(--badge-update-text);
font-size: 0.7rem; font-size: 0.7rem;
font-weight: 600; display: inline-flex;
letter-spacing: 0.04em; align-items: center;
text-transform: uppercase; justify-content: center;
box-shadow: 0 4px 12px var(--badge-update-glow); flex-shrink: 0;
box-shadow: 0 2px 6px var(--badge-update-glow);
border: 1px solid color-mix(in oklab, var(--badge-update-bg) 55%, transparent); border: 1px solid color-mix(in oklab, var(--badge-update-bg) 55%, transparent);
white-space: nowrap; }
.model-update-badge i {
margin-left: 1px;
line-height: 1;
} }

View File

@@ -597,7 +597,7 @@ export function createModelCard(model, modelType) {
</span> </span>
${hasUpdateAvailable ? ` ${hasUpdateAvailable ? `
<span class="model-update-badge" title="${updateBadgeTooltip}"> <span class="model-update-badge" title="${updateBadgeTooltip}">
${updateBadgeLabel} <i class="fas fa-arrow-up"></i>
</span> </span>
` : ''} ` : ''}
</div> </div>