Skip to content

Commit 85541e4

Browse files
committed
fix: overflow and drawer swipe
1 parent 4d70f3e commit 85541e4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

platforms/metagram/src/lib/fragments/Drawer/Drawer.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
interface IDrawerProps extends HTMLAttributes<HTMLDivElement> {
1010
drawer?: CupertinoPane;
1111
children?: Snippet;
12-
handleSwipe?: (isOpen: boolean | undefined) => void;
1312
}
1413
1514
let {
@@ -27,7 +26,6 @@
2726
2827
const handleDrawerSwipe = (event: SwipeCustomEvent) => {
2928
if (event.detail.direction === ('down' as string)) {
30-
handleSwipe?.(false);
3129
drawer?.destroy({ animate: true });
3230
}
3331
};

platforms/metagram/src/lib/fragments/Post/Post.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@
8282
</button>
8383
</div>
8484
<div class="flex items-center justify-between gap-3 text-lg text-black/40">
85-
<p>{count.likes} likes</p>
85+
<p class="subtext text-black-400">{count.likes} likes</p>
8686
<HugeiconsIcon
8787
icon={RecordIcon}
8888
size={5}
8989
strokeWidth={30}
9090
color="var(--color-black-400)"
9191
className="rounded-full"
9292
/>
93-
<p>{count.comments} comments</p>
93+
<p class="subtext text-black-400">{count.comments} comments</p>
9494
</div>
9595
</div>
9696
</article>

platforms/metagram/src/routes/(protected)/home/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
});
6161
</script>
6262

63-
<ul bind:this={listElement} class="hide-scrollbar h-[600px] overflow-auto">
63+
<ul bind:this={listElement} class="hide-scrollbar h-[100vh] overflow-auto">
6464
{#each visiblePosts as post}
6565
<li class="mb-6">
6666
<Post

platforms/metagram/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
});
3737
</script>
3838

39-
<main class="h-[100dvh] px-4 md:px-0">
39+
<main class="h-[100dvh] overflow-hidden px-4 md:px-0">
4040
{@render children()}
4141
</main>

0 commit comments

Comments
 (0)