Fix page changing from RTL when viewing some profiles

This commit is contained in:
hzrd149 2024-11-11 12:34:50 +00:00
parent 6157bec6c0
commit dec72304e9
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"nostrudel": patch
---
Fix page changing from RTL when viewing some profiles

View File

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" dir="auto">
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

View File

@ -68,7 +68,7 @@ export const TextNoteContents = React.memo(
<MediaOwnerProvider owner={(event as NostrEvent).pubkey as string | undefined}>
<LightboxProvider>
<Suspense fallback={<Spinner />}>
<Box whiteSpace="pre-wrap" {...props}>
<Box whiteSpace="pre-wrap" dir="auto" {...props}>
{content}
</Box>
</Suspense>