design: fix over padding on mobile

This commit is contained in:
James Xylight committed 2025-07-25 20:59:30 -07:00
1 parent 2d3e711a2f
commit 1f078bd6e1
11 files changed
+15 -15

No files matched your search

@@ -185,7 +185,7 @@
? 'bg-green-400/10 p-1 rounded-lg w-max font-medium'
: page.url.hash.slice(1) ==
node.comment_view.comment.id.toString() &&
'bg-slate-100 dark:bg-zinc-800 p-1 rounded-lg w-max font-medium',
'bg-slate-100 dark:bg-zinc-800 p-1 rounded-lg max-w-max font-medium',
]}
/>
{#if actions}
@@ -52,7 +52,7 @@
community={community ? comment.community : undefined}
title={comment.post.name}
id={comment.post.id}
titleClass="text-sm"
titleClass="text-sm text-slate-500 dark:text-zinc-400"
/>
</div>
<Button
@@ -48,7 +48,7 @@
{initialOffset}
>
{#snippet item(index)}
<div class="-mx-4 sm:-mx-6 px-4 sm:px-6">
<div class="-mx-3 sm:-mx-6 px-3 sm:px-6">
<Comments
bind:nodes={() => [nodes[index]], v => (nodes[index] = v[0])}
{post}
+2 -2
View File
@@ -164,8 +164,8 @@
class="absolute overflow-hidden inset-0
sm:rounded-xl bg-slate-50 dark:bg-zinc-900
opacity-0 transition-all -z-50 no-list-margin
group-hover:inset-y-0.5 group-hover:-inset-x-4 sm:group-hover:-inset-x-5 group-hover:opacity-100
group-focus:inset-y-0.5 group-focus:-inset-x-4 sm:group-focus:-inset-x-5 group-focus:opacity-100
group-hover:inset-y-0.5 group-hover:-inset-x-3 sm:group-hover:-inset-x-5 group-hover:opacity-100
group-focus:inset-y-0.5 group-focus:-inset-x-3 sm:group-focus:-inset-x-5 group-focus:opacity-100
duration-150"
></div>
</div>
@@ -172,7 +172,7 @@
{:else}
<VirtualList
id="feed"
class="divide-y -mx-4 sm:-mx-6 divide-slate-200 dark:divide-zinc-900"
class="divide-y -mx-3 sm:-mx-6 divide-slate-200 dark:divide-zinc-900"
items={posts}
{initialOffset}
overscan={3}
@@ -185,7 +185,7 @@
data-index={row}
style={row < 7 ? `--anim-delay: ${row * 50}ms` : ''}
class={[
'relative post-container px-4 sm:px-6',
'relative post-container px-3 sm:px-6',
row < 7 && 'pop-in opacity-0',
]}
>
@@ -42,8 +42,8 @@
<img
src={optimizeImageURL(thumbnail_url, 64)}
alt=""
class="-z-10 absolute w-full object-cover h-full opacity-10 brightness-150
dark:brightness-90 dark:opacity-20 blur-2xl -inset-px"
class="-z-10 absolute w-full object-cover h-full opacity-5 brightness-150
dark:brightness-70 dark:opacity-20 blur-2xl -inset-px"
/>
{/if}
<div class="flex flex-col gap-2">