mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-03-01 14:27:38 +00:00
Reserve space for reset button in vehicle editor to prevent layout shift
This commit is contained in:
parent
c0da123d56
commit
7789ed593b
@ -215,9 +215,11 @@
|
|||||||
<NavButton direction="right" onclick={nextPart} />
|
<NavButton direction="right" onclick={nextPart} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if !isDefault && !loading && !error && !partError}
|
<div class="reset-container">
|
||||||
<ResetButton onclick={resetColor} />
|
{#if !isDefault && !loading && !error && !partError}
|
||||||
{/if}
|
<ResetButton onclick={resetColor} />
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@ -306,4 +308,8 @@
|
|||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
color: var(--color-text-light);
|
color: var(--color-text-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reset-container {
|
||||||
|
height: 1.6em;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user