fix: maintain consistent badge width by always reserving space for downgrade indicator
This commit is contained in:
1 parent
eaf250383a
commit
adc0742fdb
1 file changed
+6
-3
@@ -152,9 +152,7 @@
|
|||||||
<div class="badge-text">
|
<div class="badge-text">
|
||||||
<span class="tier-label">
|
<span class="tier-label">
|
||||||
{tierLabel}
|
{tierLabel}
|
||||||
{#if isDowngraded}
|
<span class="downgrade-indicator" class:visible={isDowngraded}>↓</span>
|
||||||
<span class="downgrade-indicator">↓</span>
|
|
||||||
{/if}
|
|
||||||
</span>
|
</span>
|
||||||
<span class="quality-info">{displayText}</span>
|
<span class="quality-info">{displayText}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -248,5 +246,10 @@
|
|||||||
color: #eab308;
|
color: #eab308;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.downgrade-indicator.visible {
|
||||||
|
visibility: visible;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user