fix: empty space in cozy mode

This commit is contained in:
Xylight committed 2024-03-16 16:56:53 -07:00
1 parent a548ab145c
commit 9cc697c94f
1 file changed
+6 -3
+6 -3
View File
@@ -34,7 +34,7 @@
<Material <Material
color={view != 'card' ? 'none' : 'distinct'} color={view != 'card' ? 'none' : 'distinct'}
padding="none" padding="none"
class="relative max-w-full min-w-0 w-full group gap-2 flex flex-col class="relative max-w-full min-w-0 w-full test group gap-2 flex flex-col
{view != 'card' ? 'bg-transparent !border-0' : 'p-5'} {view == 'compact' {view != 'card' ? 'bg-transparent !border-0' : 'p-5'} {view == 'compact'
? 'py-4 list-type' ? 'py-4 list-type'
: view == 'list' : view == 'list'
@@ -68,7 +68,10 @@
> >
<slot name="badges" slot="badges" /> <slot name="badges" slot="badges" />
</PostMeta> </PostMeta>
<div style="grid-area:embed"> <div
style="grid-area:embed"
class={view == 'list' || view == 'compact' ? '' : 'contents'}
>
<PostMedia bind:post={post.post} {view} {type} /> <PostMedia bind:post={post.post} {view} {type} />
</div> </div>
{#if view == 'list' || view == 'compact'} {#if view == 'list' || view == 'compact'}
@@ -101,7 +104,7 @@
); );
width: 100%; width: 100%;
height: 100%; height: 100%;
grid-template-rows: auto auto auto auto auto; grid-auto-rows: minmax(-0.5rem, auto);
grid-template-columns: var(--template-columns, 1fr auto); grid-template-columns: var(--template-columns, 1fr auto);
} }
</style> </style>