Skip to content

Commit

Permalink
misc: make community names font-medium
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyphyn committed Sep 13, 2023
1 parent 8f94819 commit 74f9a9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/lemmy/community/CommunityLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{#if name}
<span class="flex gap-0">
{#if showInstance != undefined ? showInstance : $userSettings.showInstances.community}
{community.title}
<span class="font-medium">{community.title}</span>
<span class="text-slate-500 dark:text-zinc-500 font-normal">
@{new URL(community.actor_id).hostname}
</span>
Expand Down
8 changes: 7 additions & 1 deletion src/lib/components/lemmy/user/UserLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
class:text-red-500={user.admin}
class:font-bold={user.admin}
>
{$userSettings.displayNames ? user.display_name ?? user.name : user.name}
<span
class:font-medium={($userSettings.showInstances.comments && inComment) ||
$userSettings.showInstances.user ||
showInstance}
>
{$userSettings.displayNames ? user.display_name ?? user.name : user.name}
</span>
{#if $userSettings.showInstances.user || ($userSettings.showInstances.comments && inComment) || showInstance}
<span class="text-slate-500 dark:text-zinc-500 font-normal">
@{new URL(user.actor_id).hostname}
Expand Down

0 comments on commit 74f9a9e

Please sign in to comment.