design: use new entityheader in community pages
This commit is contained in:
1 parent
008f224055
commit
c3e8fbb6a8
8 files changed
+154
-133
No files matched your search
@@ -197,7 +197,7 @@
|
||||
name={community_view.community.title}
|
||||
label="!{fullCommunityName(
|
||||
community_view.community.name,
|
||||
community_view.community.actor_id
|
||||
community_view.community.actor_id,
|
||||
)}"
|
||||
>
|
||||
<Avatar
|
||||
@@ -287,7 +287,7 @@
|
||||
<Button
|
||||
href="/c/{fullCommunityName(
|
||||
community_view.community.name,
|
||||
community_view.community.actor_id
|
||||
community_view.community.actor_id,
|
||||
)}/settings"
|
||||
size="square-md"
|
||||
>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
export let name: boolean = true
|
||||
export let avatarSize: number = 24
|
||||
export let showInstance: boolean = $userSettings.showInstances.community
|
||||
export let displayName: boolean = true
|
||||
</script>
|
||||
|
||||
<a
|
||||
@@ -29,7 +30,9 @@
|
||||
|
||||
{#if name}
|
||||
<span class="flex gap-0 items-center max-w-full min-w-0 flex-shrink">
|
||||
<span class="font-medium username-text">{community.title}</span>
|
||||
<span class="font-medium username-text">
|
||||
{displayName ? community.title : community.name}
|
||||
</span>
|
||||
{#if showInstance}
|
||||
<span
|
||||
class="text-slate-500 dark:text-zinc-500 font-normal
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="max-h-36 overflow-visible">
|
||||
<img
|
||||
src={banner}
|
||||
class="w-full object-cover h-48 rounded-xl rounded-b-none"
|
||||
class="w-full object-cover h-48 rounded-xl bg-white dark:bg-zinc-900"
|
||||
height="192"
|
||||
alt="User banner"
|
||||
/>
|
||||
@@ -31,8 +31,7 @@
|
||||
width={64}
|
||||
url={avatar}
|
||||
alt={name}
|
||||
circle={false}
|
||||
class="ring-4 rounded-3xl ring-slate-25 dark:ring-zinc-925"
|
||||
class="ring-4 ring-slate-25 dark:ring-zinc-925 bg-slate-25 dark:bg-zinc-925"
|
||||
/>
|
||||
<div>
|
||||
<span class="text-lg font-semibold">
|
||||
|
||||
@@ -359,7 +359,8 @@
|
||||
"unblock": "Unblock",
|
||||
"blockInstance": "Block instance",
|
||||
"favorite": "Favorite",
|
||||
"unfavorite": "Remove Favorite"
|
||||
"unfavorite": "Remove Favorite",
|
||||
"activeDay": "Active Today"
|
||||
}
|
||||
},
|
||||
"admin": {
|
||||
|
||||
Reference in new issue
Block a user