Skip to content

Commit

Permalink
Right-align legend controls, but sacrifice some vertical alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 8, 2024
1 parent ecf9af8 commit 7eed7f6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/lib/browse/layers/LayerControl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,21 @@
<!-- For the right panel -->
<div bind:this={contents}>
<CheckboxGroup small>
<Checkbox bind:checked={show}>
<slot name="icon" />
{title}
<span slot="right">
<div
style="display: flex; justify-content: space-between; white-space: nowrap"
>
<Checkbox bind:checked={show}>
<slot name="icon" />
{title}
</Checkbox>
<span>
<HelpButton>
<slot name="help" />
</HelpButton>

<SecondaryButton on:click={remove}>X</SecondaryButton>
</span>
</Checkbox>
</div>
</CheckboxGroup>
{#if show}
<slot name="controls" />
Expand Down

0 comments on commit 7eed7f6

Please sign in to comment.