Reserve space for reset button in vehicle editor to prevent layout shift

This commit is contained in:
Christian Semmler 2026-02-01 15:28:54 -08:00
parent c0da123d56
commit 7789ed593b
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -215,10 +215,12 @@
<NavButton direction="right" onclick={nextPart} />
</div>
<div class="reset-container">
{#if !isDefault && !loading && !error && !partError}
<ResetButton onclick={resetColor} />
{/if}
</div>
</div>
<style>
.vehicle-editor {
@ -306,4 +308,8 @@
font-size: 0.9em;
color: var(--color-text-light);
}
.reset-container {
height: 1.6em;
}
</style>