From 22feedaff5084852616524a512eab2cb8f999b91 Mon Sep 17 00:00:00 2001 From: ari melody Date: Tue, 2 Jul 2024 21:13:01 +0100 Subject: [PATCH] hotfix: notifications do not understand reactions --- src/lib/ui/Notification.svelte | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/lib/ui/Notification.svelte b/src/lib/ui/Notification.svelte index 2349e08..f16abec 100644 --- a/src/lib/ui/Notification.svelte +++ b/src/lib/ui/Notification.svelte @@ -1,5 +1,6 @@ - +
{mouse_pos.left = e.pageX; mouse_pos.top = e.pageY}} + on:mouseup={e => {if (e.pageX == mouse_pos.left && e.pageY == mouse_pos.top) gotoPost(e)}} + on:keydown={gotoPost}>
{#if data.type === "favourite"} {:else if data.type === "reblog"} - {:else if data.type === "react"} + {:else if data.type === "reaction"} {:else if data.type === "mention"} @@ -88,7 +110,7 @@ {/if} {/if} - +