misc: make user card visible on mobile

This commit is contained in:
Xyphyn committed 2023-07-26 18:42:31 -07:00
1 parent 327ef007aa
commit c2746cafaf
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
class="sticky top-20 border bg-white border-slate-200 class="sticky top-20 border bg-white border-slate-200
dark:border-zinc-800 dark:bg-zinc-900 break-words flex dark:border-zinc-800 dark:bg-zinc-900 break-words flex
flex-col gap-4 p-6 w-[22rem] rounded-md h-max max-h-[calc(100vh-6rem)] flex-col gap-4 p-6 w-[22rem] rounded-md h-max max-h-[calc(100vh-6rem)]
overflow-auto text-sm" overflow-auto text-sm {$$props.class}"
> >
<slot /> <slot />
</aside> </aside>
+3 -3
View File
@@ -46,7 +46,7 @@
<title>{data.user.person_view.person.name}</title> <title>{data.user.person_view.person.name}</title>
</svelte:head> </svelte:head>
<div class="flex flex-row gap-4 max-w-full w-full"> <div class="flex flex-col-reverse lg:flex-row gap-4 max-w-full w-full">
<div class="flex flex-col gap-4 max-w-full w-full"> <div class="flex flex-col gap-4 max-w-full w-full">
{#each items as item} {#each items as item}
{#if isComment(item)}<Card {#if isComment(item)}<Card
@@ -84,8 +84,8 @@
{/each} {/each}
</div> </div>
<div class="max-w-sm w-full hidden lg:block"> <div class="max-w-sm w-full mx-auto">
<StickyCard> <StickyCard class="w-full">
<Avatar <Avatar
width={64} width={64}
url={data.user.person_view.person.avatar} url={data.user.person_view.person.avatar}