fix: maintain consistent badge width by always reserving space for downgrade indicator

This commit is contained in:
vicrodh committed 2026-01-31 23:58:47 -06:00
1 parent eaf250383a
commit adc0742fdb
1 file changed
+6 -3
+6 -3
View File
@@ -152,9 +152,7 @@
<div class="badge-text">
<span class="tier-label">
{tierLabel}
{#if isDowngraded}
<span class="downgrade-indicator">↓</span>
{/if}
<span class="downgrade-indicator" class:visible={isDowngraded}>↓</span>
</span>
<span class="quality-info">{displayText}</span>
</div>
@@ -248,5 +246,10 @@
color: #eab308;
font-weight: 600;
margin-left: 2px;
visibility: hidden;
}
.downgrade-indicator.visible {
visibility: visible;
}
</style>