design: fix over padding on mobile
This commit is contained in:
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}
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{#each items as item, index}
|
||||
<li
|
||||
class={[
|
||||
'py-3 px-4',
|
||||
'py-2 px-3 sm:py-3 sm:px-4',
|
||||
'hover:bg-slate-100 dark:hover:bg-zinc-900/25 transition-colors @container',
|
||||
'bg-slate-50 dark:bg-zinc-950 first:rounded-t-2xl last:rounded-b-2xl',
|
||||
]}
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
<div
|
||||
class={[
|
||||
pageHeader &&
|
||||
`w-[calc(100%+2rem)] sm:w-[calc(100%+3rem)]
|
||||
bg-slate-50 dark:bg-zinc-950 -m-4 sm:-m-6 mb-0 sm:mb-0 sm:p-6 p-4
|
||||
`w-[calc(100%+1.5rem)] sm:w-[calc(100%+3rem)]
|
||||
bg-slate-50 dark:bg-zinc-950 -m-4 sm:-m-6 mb-0 sm:mb-0 sm:p-6 p-3
|
||||
border-b border-slate-200 dark:border-zinc-800 margin`,
|
||||
]}
|
||||
{style}
|
||||
|
||||
Reference in new issue
Block a user