From ba7bc8d2019a8f74bd7cc16855ced868c063d63b Mon Sep 17 00:00:00 2001 From: ChrRubin <20059164+ChrRubin@users.noreply.github.com> Date: Thu, 16 Jun 2022 19:14:35 +0800 Subject: [PATCH] Un-absolute sticky bar --- src/components/Hyperchat.svelte | 34 ++++++++++++++++----------------- src/components/StickyBar.svelte | 10 ++++------ 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/Hyperchat.svelte b/src/components/Hyperchat.svelte index 169db173..ee4dbb0c 100644 --- a/src/components/Hyperchat.svelte +++ b/src/components/Hyperchat.svelte @@ -278,7 +278,7 @@ $showProfileIcons, $showUsernames, $showTimestamps, $showUserBadges ); - const containerClass = 'h-screen w-screen text-black dark:text-white dark:bg-black dark:bg-opacity-25'; + const containerClass = 'h-screen w-screen text-black dark:text-white dark:bg-black dark:bg-opacity-25 flex flex-col'; const isSuperchat = (action: Chat.MessageAction) => (action.message.superChat || action.message.superSticker); const isMembership = (action: Chat.MessageAction) => (action.message.membership); @@ -316,7 +316,10 @@ }} on:load={onLoad} />
-
+ {#if $enableStickySuperchatBar} + + {/if} +
{#each messageActions as action (action.message.messageId)} @@ -342,25 +345,22 @@
{/each}
-
-
- {#if $enableStickySuperchatBar} - - {/if} {#if pinned} -
- +
+
+ +
+
+ {/if} + {#if !isAtBottom} +
+
{/if}
- {#if !isAtBottom} -
-
- {/if}