Rearrange post meta for better alignment in compact post view (#63)
* Compact post view: Allow post meta to fill the card & align post title with thumbnail * misc: fix gap --------- Co-authored-by: zamuz <> Co-authored-by: Xyphyn <james@xylight.dev>
This commit is contained in:
1 file changed
+4
-3
@@ -16,8 +16,7 @@
|
||||
</script>
|
||||
|
||||
<Card class="bg-white flex flex-col w-full p-5 gap-2.5">
|
||||
<div class="flex flex-row w-full gap-2.5">
|
||||
<div class="flex flex-col gap-1.5 grow">
|
||||
<div class="flex flex-col gap-1">
|
||||
<PostMeta
|
||||
community={hideCommunity ? undefined : post.community}
|
||||
user={post.creator}
|
||||
@@ -31,6 +30,7 @@
|
||||
nsfw={post.post.nsfw}
|
||||
saved={post.saved}
|
||||
/>
|
||||
|
||||
<a
|
||||
href="/post/{getInstance()}/{post.post.id}"
|
||||
class="font-medium"
|
||||
@@ -41,6 +41,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{#if $userSettings.showCompactPosts && (post.post.thumbnail_url || isImage(post.post.url))}
|
||||
<div class="flex flex-row w-full gap-2.5">
|
||||
<div class="flex-none w-24 h-24">
|
||||
<a href="/post/{getInstance()}/{post.post.id}">
|
||||
{#if post.post.thumbnail_url}
|
||||
@@ -60,8 +61,8 @@
|
||||
{/if}
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{#if !$userSettings.showCompactPosts}
|
||||
{#if post.post.url && !post.post.thumbnail_url}
|
||||
<a
|
||||
|
||||
Reference in new issue
Block a user