Skip to content

Commit

Permalink
publication center: toggle open on click
Browse files Browse the repository at this point in the history
  • Loading branch information
julesvirallinen authored and oleeskild committed Oct 2, 2023
1 parent 4a317e5 commit 23fea6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ui/TreeView/TreeNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
on:click={toggleCheck}
/>
{/if}
{tree.name}
<span on:click={toggleExpansion}>{tree.name}</span>
{:else}
{#if !readOnly}
<input
Expand All @@ -93,7 +93,9 @@
/>
{/if}

<span class="root-header">{tree.name}</span>
<span class="root-header" on:click={toggleExpansion}
>{tree.name}</span
>
{/if}
</span>
{#if expanded}
Expand Down Expand Up @@ -123,7 +125,8 @@
on:click={toggleCheck}
/>
{/if}
{tree.name}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<span on:click={toggleExpansion}>{tree.name}</span>
<!-- svelte-ignore a11y-click-events-have-key-events -->
{#if enableShowDiff}
<span title="Show diff" class="diff" on:click={showDiff}>
Expand Down

0 comments on commit 23fea6a

Please sign in to comment.