Merge branch 'rtl-mentions' into 'develop'
Fix mentions in RTL See merge request soapbox-pub/soapbox!2033
This commit is contained in:
commit
eb4e4c4341
4 changed files with 6 additions and 5 deletions
|
@ -216,7 +216,7 @@ const Account = ({
|
||||||
|
|
||||||
<Stack space={withAccountNote || note ? 1 : 0}>
|
<Stack space={withAccountNote || note ? 1 : 0}>
|
||||||
<HStack alignItems='center' space={1} style={style}>
|
<HStack alignItems='center' space={1} style={style}>
|
||||||
<Text theme='muted' size='sm' truncate>@{username}</Text>
|
<Text theme='muted' size='sm' direction='ltr' truncate>@{username}</Text>
|
||||||
|
|
||||||
{account.favicon && (
|
{account.favicon && (
|
||||||
<InstanceFavicon account={account} />
|
<InstanceFavicon account={account} />
|
||||||
|
|
|
@ -121,7 +121,7 @@ const ProfileInfoPanel: React.FC<IProfileInfoPanel> = ({ account, username }) =>
|
||||||
<Stack space={2}>
|
<Stack space={2}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<HStack space={1} alignItems='center'>
|
<HStack space={1} alignItems='center'>
|
||||||
<Text size='sm' theme='muted'>
|
<Text size='sm' theme='muted' direction='ltr'>
|
||||||
@{username}
|
@{username}
|
||||||
</Text>
|
</Text>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
@ -157,7 +157,7 @@ const ProfileInfoPanel: React.FC<IProfileInfoPanel> = ({ account, username }) =>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|
||||||
<HStack alignItems='center' space={0.5}>
|
<HStack alignItems='center' space={0.5}>
|
||||||
<Text size='sm' theme='muted'>
|
<Text size='sm' theme='muted' direction='ltr'>
|
||||||
@{displayFqn ? account.fqn : account.acct}
|
@{displayFqn ? account.fqn : account.acct}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ const useLocale = (fallback = 'en'): UseLocaleResult => {
|
||||||
const direction: CSSProperties['direction'] =
|
const direction: CSSProperties['direction'] =
|
||||||
RTL_LOCALES.includes(locale)
|
RTL_LOCALES.includes(locale)
|
||||||
? 'rtl'
|
? 'rtl'
|
||||||
: undefined;
|
: 'ltr';
|
||||||
|
|
||||||
return {
|
return {
|
||||||
locale,
|
locale,
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
@apply text-gray-700 dark:text-gray-600 mb-1 text-sm;
|
@apply text-gray-700 dark:text-gray-600 mb-1 text-sm;
|
||||||
|
|
||||||
&__account {
|
&__account {
|
||||||
@apply text-primary-600 dark:text-accent-blue hover:text-primary-700 dark:hover:text-accent-blue no-underline hover:underline;
|
@apply text-primary-600 dark:text-accent-blue hover:text-primary-700 dark:hover:text-accent-blue no-underline hover:underline inline-block;
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue