Fix tree list partial commit checkboxes

This commit is contained in:
Mattias Granlund 2023-12-19 15:47:30 +01:00
parent 8e2f2d331f
commit 6eebffabd2
4 changed files with 7 additions and 5 deletions

View File

@ -91,6 +91,7 @@
flex-shrink: 0;
margin-right: 0.25rem;
}
/* hello */
.info {
display: flex;
align-items: center;

View File

@ -86,6 +86,7 @@
{readonly}
selected={node.file?.id == $selectedFileId}
{selectedOwnership}
showCheckbox={showCheckboxes}
on:click={() => {
if ($selectedFileId == node.file?.id) $selectedFileId = undefined;
else $selectedFileId = node.file?.id;

View File

@ -44,7 +44,7 @@
tabindex="0"
>
<div class="tree-list-file" class:selected>
{#if !showCheckbox}
{#if showCheckbox}
<Checkbox
small
{checked}

View File

@ -39,10 +39,6 @@
{:else}
<Icon name="chevron-right-small" />
{/if}
<IconFolder class="h-4 w-4 scale-75 text-blue-400" />
<span class="name text-base-body-12">
{node.name}
</span>
{#if showCheckbox}
<Checkbox
small
@ -51,6 +47,10 @@
on:change={onCheckboxChange}
/>
{/if}
<IconFolder class="h-4 w-4 scale-75 text-blue-400" />
<span class="name text-base-body-12">
{node.name}
</span>
</button>
<style lang="postcss">