Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: fix bug where profile popover would spin forever

the popover showed on mouseover over the parent div, but the hx request
was fired on the <a> tag inside the div. if you managed to move the
mouse into an area where the div was present but the <a> was not
present, you could trigger a popover but not an hx request, causing the
loader to spin indefinitely.

we now do all events on the same element to prevent this bug.

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (Jun 15, 2026, 1:58 PM +0100) commit c38a4376 parent 2fe5fb92 change-id oyuzmlto
+6 -8
+6 -8
appview/pages/templates/user/fragments/picLink.html
··· 8 8 {{ end }} 9 9 <div class="relative inline-block" 10 10 {{ if $vr }} 11 + hx-get="/profile/popover?did={{ $did }}" 12 + hx-trigger="mouseenter once" 13 + hx-target="find [data-profile-popover-content]" 14 + hx-swap="innerHTML" 11 15 onmouseenter="(function(el){ 12 16 clearTimeout(el._pht); 13 17 el._pht = setTimeout(function(){ ··· 24 28 p.classList.add('hidden'); 25 29 })(this)" 26 30 {{ end }}> 27 - <a href="/{{ $handle }}" title="{{ $handle }}" 28 - {{ if $vr }} 29 - hx-get="/profile/popover?did={{ $did }}" 30 - hx-trigger="mouseenter once" 31 - hx-target="next [data-profile-popover-content]" 32 - hx-swap="innerHTML" 33 - {{ end }}> 31 + <a href="/{{ $handle }}" title="{{ $handle }}"> 34 32 <img 35 33 src="{{ tinyAvatar $did }}" 36 34 alt="" ··· 43 41 type="button" 44 42 popovertarget="vouch-modal-{{ normalizeForHtmlId $vr.SubjectDid.String }}" 45 43 popovertargetaction="toggle" 46 - class="absolute -bottom-0.5 -right-0.5 w-1/2 h-1/2 cursor-pointer" 44 + class="absolute -bottom-0.5 -right-0.5 w-1/2 h-1/2 cursor-pointer"> 47 45 {{ if $vr.IsDirectVouch }} 48 46 {{ template "fragments/icons/shield-direct-vouch" "w-full h-full" }} 49 47 {{ else if $vr.IsDirectDenounce }}