refac: only show resizer when controls is open

This commit is contained in:
Timothy J. Baek 2024-10-05 14:54:15 -07:00
parent 1558f64c48
commit a571ae4ec2

View File

@ -127,11 +127,14 @@
{/if} {/if}
{:else} {:else}
<!-- if $showControls --> <!-- if $showControls -->
{#if $showControls}
<PaneResizer class="relative flex w-2 items-center justify-center bg-background group"> <PaneResizer class="relative flex w-2 items-center justify-center bg-background group">
<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm"> <div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm">
<EllipsisVertical className="size-4 invisible group-hover:visible" /> <EllipsisVertical className="size-4 invisible group-hover:visible" />
</div> </div>
</PaneResizer> </PaneResizer>
{/if}
<Pane <Pane
bind:pane bind:pane
defaultSize={$showControls defaultSize={$showControls