Skip to content

Commit 6cab184

Browse files
committed
fix: layout scroll
1 parent facdbd4 commit 6cab184

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

platforms/metagram/src/routes/(protected)/+layout.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
if (paneModal) paneModal.present({ animate: true });
8888
}}
8989
/>
90-
<section class="hide-scrollbar h-[100dvh] overflow-y-auto px-4 pb-16 md:px-8 md:pt-8">
90+
<section class="h-[100dvh] md:px-8 md:pt-8">
9191
{#if route === '/profile/post'}
9292
<button
9393
class="my-4 cursor-pointer rounded-full bg-white/60 p-2 hover:bg-gray-100"
@@ -111,7 +111,9 @@
111111
]}
112112
/>
113113
{/if}
114-
{@render children()}
114+
<section class="hide-scrollbar h-[100%] overflow-y-auto pb-35">
115+
{@render children()}
116+
</section>
115117
</section>
116118
{#if route === '/home' || route === '/messages'}
117119
<aside

platforms/metagram/src/routes/(protected)/messages/[id]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
let messageValue = $state('');
55
</script>
66

7-
<section class="chat relative px-0">
7+
<section class="relative px-0">
88
{#each { length: 12 } as _}
99
<ChatMessage
1010
isOwn={true}
@@ -54,7 +54,7 @@
5454
{/each}
5555

5656
<MessageInput
57-
class="sticky start-0 bottom-[-15px] w-full"
57+
class="sticky start-0 bottom-[-30px] w-full"
5858
variant="dm"
5959
src="https://picsum.photos/id/237/200/300"
6060
bind:value={messageValue}

0 commit comments

Comments
 (0)