diff --git a/src/features/landing-timeline/components/logo-text.tsx b/src/features/landing-timeline/components/logo-text.tsx index f1210ec765..1cae1112c2 100644 --- a/src/features/landing-timeline/components/logo-text.tsx +++ b/src/features/landing-timeline/components/logo-text.tsx @@ -1,13 +1,16 @@ import React from 'react'; -interface ILogoText { +interface ILogoText extends Pick, 'dir'> { children: React.ReactNode; } /** Big text in site colors, for displaying the site name. Resizes itself according to the screen size. */ -const LogoText: React.FC = ({ children }) => { +const LogoText: React.FC = ({ children, dir }) => { return ( -

+

{children}

); diff --git a/src/features/landing-timeline/components/site-banner.tsx b/src/features/landing-timeline/components/site-banner.tsx index 91bd0bcc3c..453447c9a0 100644 --- a/src/features/landing-timeline/components/site-banner.tsx +++ b/src/features/landing-timeline/components/site-banner.tsx @@ -3,19 +3,24 @@ import React from 'react'; import Markup from 'soapbox/components/markup'; import { Stack } from 'soapbox/components/ui'; import { useInstance } from 'soapbox/hooks'; +import { getTextDirection } from 'soapbox/utils/rtl'; import { LogoText } from './logo-text'; const SiteBanner: React.FC = () => { const instance = useInstance(); + const description = instance.short_description || instance.description; return ( - {instance.title} + + {instance.title} + );