diff --git a/src/app.css b/src/app.css index 89f2953..c6dc4a2 100644 --- a/src/app.css +++ b/src/app.css @@ -329,3 +329,27 @@ emoji-picker { progress[value]::-webkit-progress-value { transition: width 0.5s; } + +/* content width for fixed elements */ + +.cw { + @apply w-full md:w-[calc(100%-18.5rem)]; +} + +/* chat view */ + +.chat__page-bar { + @apply cw !fixed top-0; +} + +.chat__messages { + @apply cw fixed top-12 flex h-[calc(100%-10rem)] flex-col-reverse overflow-y-auto overflow-x-hidden md:h-[calc(100%-6rem)]; +} + +.chat__compose { + @apply cw fixed bottom-14 md:bottom-0; +} + +.chat__scroll-down { + @apply fixed bottom-28 right-4 md:bottom-16; +} diff --git a/src/lib/components/PageBar.svelte b/src/lib/components/PageBar.svelte index 9e2a0e2..6d29d35 100644 --- a/src/lib/components/PageBar.svelte +++ b/src/lib/components/PageBar.svelte @@ -9,7 +9,7 @@ const {...props}: Props = $props() -
New Messages
- -
- {#if loadingEvents}
-