From eeff46876d86ac4e886e71c13dd463cf7d6a9009 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 1 Oct 2026 14:16:40 +0000 Subject: [PATCH] Redesign: Show more server info in navigation when logged out (#40802) --- .../redesign/logged_out_info.module.scss | 26 +++++++ .../redesign/logged_out_info.tsx | 68 ++++++++++++++++++- app/javascript/mastodon/locales/en.json | 1 + 3 files changed, 94 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.module.scss b/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.module.scss index e60f21f2c0d..f42858a7b91 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.module.scss +++ b/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.module.scss @@ -1,5 +1,31 @@ @use '@/styles/mastodon/mixins'; +.meta { + display: flex; + gap: var(--space-4); + flex-wrap: wrap; + padding-top: var(--space-4); + + @include mixins.type-caption; + + dd { + @include mixins.type-label; + + padding-top: var(--space-1); + } +} + +.adminLink { + --lockup-padding: 0; + --lockup-gap: var(--space-1); + + font: inherit; + + :any-link { + font-size: var(--fs-13); + } +} + .description { margin-bottom: var(--space-4); diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.tsx b/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.tsx index e1cf10783a7..1e80ffa62c4 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.tsx +++ b/app/javascript/mastodon/features/navigation_panel/redesign/logged_out_info.tsx @@ -8,9 +8,15 @@ import { WarningIcon } from '@phosphor-icons/react'; import { openModal } from '@/mastodon/actions/modal'; import { fetchServer } from '@/mastodon/actions/server'; +import type { ApiInstanceJSON } from '@/mastodon/api_types/instance'; +import { Avatar } from '@/mastodon/components/avatar'; import { Button } from '@/mastodon/components/button/redesign'; import { Callout } from '@/mastodon/components/callout/redesign'; +import { DisplayNameSimple } from '@/mastodon/components/display_name/simple'; +import { LockupLink, LockupWrapper } from '@/mastodon/components/lockup'; +import { ShortNumber } from '@/mastodon/components/short_number'; import { Skeleton } from '@/mastodon/components/skeleton'; +import { useAccount } from '@/mastodon/hooks/useAccount'; import { disabledAccountId, domain, @@ -55,7 +61,12 @@ export const LoggedOutInfo: React.FC = () => { return ( {serverItem?.description ?? ''}

} + description={ + <> +

{serverItem?.description ?? ''}

+ + + } isLoading={isLoading} >