mirror of
https://github.com/andrei0x309/yup-live-chrome-extension.git
synced 2024-11-09 18:10:57 +00:00
chore: changes for 1.1.4
This commit is contained in:
parent
b29265afe9
commit
68bbb0d095
@ -16,7 +16,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if notif.eventType === "vote"}
|
{#if notif.eventType === "vote"}
|
||||||
{@const url = notif.meta.url}
|
{@const url = notif?.meta?.url ?? ''}
|
||||||
{@const length = url.length}
|
{@const length = url.length}
|
||||||
{@const shortUrl = url.slice(0, 10) + "..." + url.slice(length - 10, length)}
|
{@const shortUrl = url.slice(0, 10) + "..." + url.slice(length - 10, length)}
|
||||||
{@const finalUrl = length > 24 ? shortUrl : url}
|
{@const finalUrl = length > 24 ? shortUrl : url}
|
||||||
@ -27,11 +27,11 @@
|
|||||||
by
|
by
|
||||||
{#if notif?.senders?.length > 1}
|
{#if notif?.senders?.length > 1}
|
||||||
{notif?.senders[0].handle}
|
{notif?.senders[0].handle}
|
||||||
{#if notif.senders.length - 1 > 0}
|
{#if notif.senders?.length - 1 > 0}
|
||||||
<span class="opacity-60"> and {notif.senders.length - 1} more</span>
|
<span class="opacity-60"> and {notif.senders.length - 1} more</span>
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
{notif.senders[0].handle.length > 12 ? notif.senders[0].handle.slice(0, 12) + "..." : notif.senders[0].handle}
|
{notif.senders[0].handle?.length > 12 ? notif.senders[0]?.handle?.slice(0, 12) + "..." : notif.senders[0]?.handle ?? ''}
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
<p class="text-xs text-gray-200 my-0 mt-1">
|
<p class="text-xs text-gray-200 my-0 mt-1">
|
||||||
|
@ -51,7 +51,7 @@ const changeNotifsType = async (t : string[] | null) => {
|
|||||||
|
|
||||||
{#if loading}
|
{#if loading}
|
||||||
<PageLoader />
|
<PageLoader />
|
||||||
{:else if notifs.length === 0}
|
{:else if (notifs ?? []).length === 0}
|
||||||
|
|
||||||
{#await pastNotifsPromise}
|
{#await pastNotifsPromise}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user