diff --git a/src/components/AssigneeInput.svelte b/src/components/AssigneeInput.svelte index 3b35b70d4..557c3456f 100644 --- a/src/components/AssigneeInput.svelte +++ b/src/components/AssigneeInput.svelte @@ -122,19 +122,18 @@ {#if allowedToEdit}
{#if showInput} - + { inputValue = ""; showInput = false; }} - name="cross" - styleCursor="pointer" /> + name="cross" /> {:else} - (showInput = true)} - styleCursor="pointer"> + (showInput = true)}> {/if}
{/if} diff --git a/src/components/Icon.svelte b/src/components/Icon.svelte index 1c89cb67a..8492c860e 100644 --- a/src/components/Icon.svelte +++ b/src/components/Icon.svelte @@ -4,7 +4,7 @@ interface Props { size?: "16" | "32"; onclick?: () => void; - styleCursor?: "default" | "pointer" | "inherit"; + disabled?: boolean; name: | "arrow-left" | "arrow-right" @@ -46,8 +46,8 @@ const { size = "16", onclick = undefined, - styleCursor = "inherit", name, + disabled = false, }: Props = $props(); @@ -59,14 +59,29 @@ -webkit-user-select: none; user-select: none; } + .hoverable { + color: var(--color-foreground-dim); + } + .hoverable:not(.disabled):hover { + color: var(--color-foreground-default); + } + .disabled { + color: var(--color-foreground-disabled); + } { + if (onclick && !disabled) { + onclick(); + } + }} aria-label={`icon-${name}`} width={size} height={size} diff --git a/src/components/LabelInput.svelte b/src/components/LabelInput.svelte index 1570e1384..9557dde84 100644 --- a/src/components/LabelInput.svelte +++ b/src/components/LabelInput.svelte @@ -109,19 +109,18 @@ {#if allowedToEdit}
{#if showInput} - + { inputValue = ""; showInput = false; }} - name="cross" - styleCursor="pointer" /> + name="cross" /> {:else} - (showInput = true)} - styleCursor="pointer"> + (showInput = true)}> {/if}
{/if} diff --git a/src/components/ReactionSelector.svelte b/src/components/ReactionSelector.svelte index f4120addd..bb86f7442 100644 --- a/src/components/ReactionSelector.svelte +++ b/src/components/ReactionSelector.svelte @@ -52,7 +52,7 @@ {popoverPositionLeft} popoverPadding="0"> {#snippet toggle(onclick)} - + {/snippet} {#snippet popover()} diff --git a/src/components/Thread.svelte b/src/components/Thread.svelte index 8d25b6ae8..804984281 100644 --- a/src/components/Thread.svelte +++ b/src/components/Thread.svelte @@ -111,7 +111,7 @@ partial(editComment, root.id)} reactOnComment={reactOnComment && partial(reactOnComment, root.id)}> {#snippet actions()} - + {/snippet} diff --git a/src/views/repo/Issue.svelte b/src/views/repo/Issue.svelte index b4d461ab2..f055a4b94 100644 --- a/src/views/repo/Issue.svelte +++ b/src/views/repo/Issue.svelte @@ -420,7 +420,6 @@ }} />
{ if (updatedTitle.trim().length > 0) { @@ -428,7 +427,6 @@ } }} /> { updatedTitle = issue.title; @@ -442,10 +440,7 @@ {#if roles.isDelegateOrAuthor( config.publicKey, repo.delegates.map(delegate => delegate.did), issue.body.author.did, )}
- (editingTitle = !editingTitle)} /> + (editingTitle = !editingTitle)} />
{/if} @@ -511,7 +506,7 @@ issue.body.id, )}> {#snippet actions()} - + {/snippet}