mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Fix Icon behaviour with empty clickhandler
Signed-off-by: Sebastian Martinez <sebastinez@me.com> Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -73,7 +73,8 @@
|
||||
<p class="bold">{path}</p>
|
||||
<span class="diff-type created">created</span>
|
||||
</div>
|
||||
<Icon class="clickable" clickHandler={() => dispatch("browse", path)} name="browse" width={20} inline fill />
|
||||
<Icon class="clickable" name="browse" width={20} inline fill
|
||||
on:click={() => dispatch("browse", path)} />
|
||||
</header>
|
||||
{/each}
|
||||
{#each diff.deleted as path (path)}
|
||||
@@ -82,7 +83,8 @@
|
||||
<p class="bold">{path}</p>
|
||||
<span class="diff-type deleted">deleted</span>
|
||||
</div>
|
||||
<Icon class="clickable" clickHandler={() => dispatch("browse", path)} name="browse" width={20} inline fill />
|
||||
<Icon class="clickable" name="browse" width={20} inline fill
|
||||
on:click={() => dispatch("browse", path)} />
|
||||
</header>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import Icon from "@app/Icon.svelte";
|
||||
import { lineNumberL, lineNumberR, lineSign } from "@app/diff";
|
||||
import type { FileDiff } from "@app/diff";
|
||||
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
export let file: FileDiff;
|
||||
@@ -109,10 +109,10 @@
|
||||
<header
|
||||
on:click={collapse}>
|
||||
<div class="actions">
|
||||
<Icon clickHandler={collapse} name="chevron" width={20} inline fill />
|
||||
<Icon name="chevron" width={20} inline fill />
|
||||
<p class="bold file-path">{file.path}</p>
|
||||
</div>
|
||||
<Icon clickHandler={() => dispatch("browse", file.path)} name="browse" width={20} inline fill />
|
||||
<Icon name="browse" width={20} inline fill on:click={() => dispatch("browse", file.path)} />
|
||||
</header>
|
||||
{#if !collapsed}
|
||||
<main>
|
||||
|
||||
Reference in New Issue
Block a user