fix: allow long usernames to wrap (#32)

Fixes #31 by adding flex-wrap to the UserLink span for usernames.
This commit is contained in:
Peter Bui authored and GitHub committed 2023-07-27 09:19:19 -07:00
1 parent fe8b0fc616
commit 87fcf27a82
2 files changed
+3 -3

No files matched your search

@@ -26,7 +26,7 @@
<Avatar url={community.icon} width={24} alt={community.name} />
<div class="flex flex-col text-xs">
<CommunityLink {community} />
<span class="text-slate-600 dark:text-zinc-400 flex flex-row gap-1">
<span class="text-slate-600 dark:text-zinc-400 flex flex-row gap-1 flex-wrap">
{#if user}
<UserLink {user} />
<span>•</span>
@@ -41,7 +41,7 @@
</span>
</div>
<div class="flex flex-row ml-auto gap-2">
<div class="flex flex-row ml-auto gap-2 flex-wrap">
{#if nsfw}
<Badge class="bg-red-600 text-white">NSFW</Badge>
{/if}