Revert "Rearrange post meta for better alignment in compact post view (#63)" (#64)

This reverts commit 6b496f43f5.
This commit is contained in:
Xylight authored and GitHub committed 2023-08-02 14:40:08 -07:00
1 parent 6b496f43f5
commit 3ef90fdf26
1 file changed
+27 -28
+27 -28
View File
@@ -16,32 +16,31 @@
</script> </script>
<Card class="bg-white flex flex-col w-full p-5 gap-2.5"> <Card class="bg-white flex flex-col w-full p-5 gap-2.5">
<div class="flex flex-col gap-1"> <div class="flex flex-row w-full gap-2.5">
<PostMeta <div class="flex flex-col gap-1.5 grow">
community={hideCommunity ? undefined : post.community} <PostMeta
user={post.creator} community={hideCommunity ? undefined : post.community}
published={new Date(post.post.published + 'Z')} user={post.creator}
upvotes={post.counts.upvotes} published={new Date(post.post.published + 'Z')}
downvotes={post.counts.downvotes} upvotes={post.counts.upvotes}
deleted={post.post.deleted} downvotes={post.counts.downvotes}
removed={post.post.removed} deleted={post.post.deleted}
locked={post.post.locked} removed={post.post.removed}
featured={post.post.featured_local || post.post.featured_community} locked={post.post.locked}
nsfw={post.post.nsfw} featured={post.post.featured_local || post.post.featured_community}
saved={post.saved} nsfw={post.post.nsfw}
/> saved={post.saved}
/>
<a <a
href="/post/{getInstance()}/{post.post.id}" href="/post/{getInstance()}/{post.post.id}"
class="font-medium" class="font-medium"
class:text-slate-500={post.read && $userSettings.markReadPosts} class:text-slate-500={post.read && $userSettings.markReadPosts}
class:dark:text-zinc-400={post.read && $userSettings.markReadPosts} class:dark:text-zinc-400={post.read && $userSettings.markReadPosts}
> >
{post.post.name} {post.post.name}
</a> </a>
</div> </div>
{#if $userSettings.showCompactPosts && (post.post.thumbnail_url || isImage(post.post.url))} {#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"> <div class="flex-none w-24 h-24">
<a href="/post/{getInstance()}/{post.post.id}"> <a href="/post/{getInstance()}/{post.post.id}">
{#if post.post.thumbnail_url} {#if post.post.thumbnail_url}
@@ -61,8 +60,8 @@
{/if} {/if}
</a> </a>
</div> </div>
</div> {/if}
{/if} </div>
{#if !$userSettings.showCompactPosts} {#if !$userSettings.showCompactPosts}
{#if post.post.url && !post.post.thumbnail_url} {#if post.post.url && !post.post.thumbnail_url}
<a <a