feat: add update badge to model modal versions tab

- Add CSS styling for tab badges with update indicator animation
- Include update_available flag in model data parsing
- Display animated badge on versions tab when updates are available
- Improve tab button layout with flexbox alignment and spacing
This commit is contained in:
Will Miao
2025-10-26 10:11:04 +08:00
parent 994fa4bd43
commit 600afdcd92
3 changed files with 73 additions and 10 deletions

View File

@@ -287,6 +287,7 @@ async function showModelModalFromCard(card, modelType) {
// Parse civitai metadata from the card's dataset
civitai: JSON.parse(card.dataset.meta || '{}'),
tags: JSON.parse(card.dataset.tags || '[]'),
update_available: card.dataset.update_available === 'true',
modelDescription: card.dataset.modelDescription || '',
// LoRA specific fields
...(modelType === MODEL_TYPES.LORA && {