diff --git a/src/lib/components/lemmy/community/CommunityLink.svelte b/src/lib/components/lemmy/community/CommunityLink.svelte index 9e7366c1..e3a4cc1a 100644 --- a/src/lib/components/lemmy/community/CommunityLink.svelte +++ b/src/lib/components/lemmy/community/CommunityLink.svelte @@ -28,7 +28,7 @@ {#if name} - {community.title} + {community.title} {#if showInstance} {/if} {#if user} @@ -168,7 +168,7 @@ {/if}
{#if tags} @@ -268,7 +268,7 @@ 'avatar stats badges'; gap: 0; grid-template-rows: auto auto; - grid-template-columns: auto 1fr auto; + grid-template-columns: max-content minmax(0, auto) auto; } :global(.badge-tag-color) { diff --git a/src/lib/components/lemmy/user/UserLink.svelte b/src/lib/components/lemmy/user/UserLink.svelte index 1367826d..34d33989 100644 --- a/src/lib/components/lemmy/user/UserLink.svelte +++ b/src/lib/components/lemmy/user/UserLink.svelte @@ -32,7 +32,7 @@ class="flex gap-0 items-center flex-shrink max-w-full min-w-0" class:ml-0.5={avatar} > - + {$userSettings.displayNames ? user.display_name || user.name : user.name} {#if showInstance} @@ -62,6 +62,14 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + min-width: 0; max-width: 100%; + flex: 1; + } + + .username-text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; }