Fix thunk indicator

This commit is contained in:
Jon Staab
2025-04-16 14:19:09 -07:00
parent 8c3e52ce8c
commit c8bc8ee8bf
2 changed files with 34 additions and 43 deletions
+1 -3
View File
@@ -6,7 +6,6 @@
pubkey,
formatTimestampAsDate,
formatTimestampAsTime,
thunkIsComplete,
deriveProfile,
deriveProfileDisplay,
} from "@welshman/app"
@@ -42,7 +41,6 @@
const profile = deriveProfile(event.pubkey, [url])
const profileDisplay = deriveProfileDisplay(event.pubkey, [url])
const [_, colorValue] = colors[parseInt(hash(event.pubkey)) % colors.length]
const hideMenuButton = $derived($thunk && !thunkIsComplete($thunk))
const reply = () => replyTo!(event)
@@ -100,7 +98,7 @@
<div class="row-2 ml-10 mt-1">
<ReactionSummary {url} {event} {onReactionClick} reactionClass="tooltip-right" />
</div>
{#if !isMobile && !hideMenuButton}
{#if !isMobile}
<button
class="join absolute right-1 top-1 border border-solid border-neutral text-xs opacity-0 transition-all"
class:group-hover:opacity-100={!isMobile}>