Improve notifcations

This commit is contained in:
WardPearce
2026-02-10 23:38:19 +13:00
parent acffdce8a0
commit 7e9e7a94a0
+18 -2
View File
@@ -66,7 +66,7 @@
playerState.subscribe(() => {
requestAnimationFrame(() => resetScroll());
})
});
interfaceAmoledTheme.subscribe(async () => {
setAmoledTheme();
@@ -245,6 +245,7 @@
if (isLoggedIn) {
loadNotifications().catch(() => authStore.set(null));
}
resetScroll();
});
@@ -351,6 +352,13 @@
{#if isLoggedIn}
<button class="circle large transparent" onclick={() => ui('#dialog-notifications')}
><i>notifications</i>
<div class="badge">
{#if notifications.length > 99}
99+
{:else}
{notifications.length}
{/if}
</div>
<div class="tooltip bottom">{$_('layout.notifications')}</div>
</button>
{/if}
@@ -401,7 +409,7 @@
{:else}
{#each notifications as notification (notification)}
<article class="no-padding border">
<Thumbnail video={notification}></Thumbnail>
<Thumbnail video={notification} sideways={true}></Thumbnail>
</article>
{/each}
{/if}
@@ -522,6 +530,10 @@
justify-content: center;
}
#dialog-notifications {
width: 500px;
}
@media only screen and (max-width: 993px) {
.pip {
width: 100%;
@@ -529,6 +541,10 @@
right: 0px;
}
#dialog-notifications {
width: 100%;
}
.pip > .pip-info > .player {
height: 80px;
width: 150px;