mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-28 20:15:20 +03:00
Fix tree list partial commit checkboxes
This commit is contained in:
parent
8e2f2d331f
commit
6eebffabd2
@ -91,6 +91,7 @@
|
||||
flex-shrink: 0;
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
/* hello */
|
||||
.info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -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;
|
||||
|
@ -44,7 +44,7 @@
|
||||
tabindex="0"
|
||||
>
|
||||
<div class="tree-list-file" class:selected>
|
||||
{#if !showCheckbox}
|
||||
{#if showCheckbox}
|
||||
<Checkbox
|
||||
small
|
||||
{checked}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user