Compare commits

...

2 Commits

Author SHA1 Message Date
kts of kettek 2afd2ff119 Remove unneeded overflow hidden 2024-02-22 01:01:21 -08:00
kts of kettek 917bf91060 Only show index if swatch exists 2024-02-22 01:01:11 -08:00
2 changed files with 5 additions and 2 deletions

View File

@ -303,7 +303,6 @@
.left {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
overflow: hidden;
}
.toolbar {
display: flex;

View File

@ -34,7 +34,11 @@
<main>
<div class="color" style="background-color: rgba({red},{green},{blue},{alpha})">
<div class="label" style="color: rgb({255-red}, {255-green}, {255-blue})">{index}</div>
<div class="label" style="color: rgb({255-red}, {255-green}, {255-blue})">
{#if swatchExists}
{index}
{/if}
</div>
</div>
<Button kind="ghost" size="small" disabled={swatchExists} iconDescription="replace swatch" tooltipPosition="top" icon={ColorSwitch} on:click={replaceSwatch}></Button>
<Button kind="ghost" size="small" disabled={swatchExists} iconDescription="add swatch" tooltipPosition="top" icon={AddLarge} on:click={addSwatch}></Button>