Fix more stuff, particularly event handlers

This commit is contained in:
Jon Staab
2025-02-03 17:21:46 -08:00
parent 8d3433b167
commit 24045a7e2a
150 changed files with 424 additions and 392 deletions
+3 -6
View File
@@ -32,7 +32,7 @@
showPubkey?: boolean
}
let {event, replyTo = undefined, pubkeys, showPubkey = false}: Props = $props()
const {event, replyTo = undefined, pubkeys, showPubkey = false}: Props = $props()
const thunk = $thunks[event.id]
const isOwn = event.pubkey === $pubkey
@@ -101,16 +101,13 @@
{#if showPubkey}
<div class="flex items-center gap-2">
{#if !isOwn}
<Button on:click={openProfile} class="flex items-center gap-1">
<Button onclick={openProfile} class="flex items-center gap-1">
<Avatar
src={$profile?.picture}
class="border border-solid border-base-content"
size={4} />
<div class="flex items-center gap-2">
<Button
on:click={openProfile}
class="text-sm font-bold"
style="color: {colorValue}">
<Button onclick={openProfile} class="text-sm font-bold" style="color: {colorValue}">
{$profileDisplay}
</Button>
</div>