design: tweak mobile navbar
This commit is contained in:
6 files changed
+37
-19
No files matched your search
@@ -16,6 +16,7 @@
|
||||
PostMeta,
|
||||
type Tag,
|
||||
} from '$lib/feature/post'
|
||||
import Fixate from '$lib/ui/generic/Fixate.svelte'
|
||||
import Placeholder from '$lib/ui/info/Placeholder.svelte'
|
||||
import { CommonList } from '$lib/ui/layout'
|
||||
import EndPlaceholder from '$lib/ui/layout/EndPlaceholder.svelte'
|
||||
@@ -214,13 +215,9 @@
|
||||
</article>
|
||||
{#await data.data.value.comments then comments}
|
||||
{#if data.data.value.params.thread.showContext || data.data.value.params.thread.singleThread}
|
||||
<div
|
||||
class="sticky mx-auto z-50 max-w-md min-w-0 flex flex-col items-center overflow-auto gap-1
|
||||
bg-slate-50/50 dark:bg-zinc-900/50 backdrop-blur-xl border border-slate-200/50 dark:border-zinc-800/50
|
||||
p-1 rounded-full justify-between top-6 lg:top-22 my-4"
|
||||
>
|
||||
<Fixate placement="top">
|
||||
<Button
|
||||
color="none"
|
||||
color="primary"
|
||||
rounding="pill"
|
||||
{loading}
|
||||
disabled={loading}
|
||||
@@ -232,7 +229,7 @@
|
||||
: data.data.value.params.thread.singleThread
|
||||
? postLink(data.data.value.post.post)
|
||||
: undefined}
|
||||
class="hover:bg-white/50 dark:hover:bg-zinc-800/30"
|
||||
class="w-max mx-auto sticky lg:top-20 z-50"
|
||||
>
|
||||
{data.data.value.params.thread.showContext
|
||||
? $t('routes.post.thread.context')
|
||||
@@ -241,7 +238,7 @@
|
||||
<Icon src={ArrowRight} size="16" micro />
|
||||
{/snippet}
|
||||
</Button>
|
||||
</div>
|
||||
</Fixate>
|
||||
{/if}
|
||||
{/await}
|
||||
<section class="flex flex-col gap-2 w-full" id="comments">
|
||||
|
||||
Reference in new issue
Block a user