nicolium: some guesses to maybe improve firefox reader mode compatibility

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 13:43:01 +01:00
parent fb1f445c07
commit 66ff838121
3 changed files with 16 additions and 5 deletions

View File

@ -213,7 +213,7 @@ const StatusContent: React.FC<IStatusContent> = React.memo(
if (spoilerText) {
output.push(
<p
<h2
className={clsx('⁂-status-title', {
'⁂-status-title--clamp': !expanded && lineClamp,
})}
@ -236,7 +236,7 @@ const StatusContent: React.FC<IStatusContent> = React.memo(
</span>
</button>
)}
</p>,
</h2>,
);
}

View File

@ -547,7 +547,12 @@ const Status: React.FC<IStatus> = (props) => {
};
return (
<Hotkeys handlers={minHandlers} focusable={focusable} element='article'>
<Hotkeys
handlers={minHandlers}
focusable={focusable}
element='article'
lang={actualStatus.language}
>
{body}
</Hotkeys>
);
@ -658,7 +663,13 @@ const Status: React.FC<IStatus> = (props) => {
};
return (
<Hotkeys handlers={handlers} focusable={focusable} element='article' data-testid='status'>
<Hotkeys
handlers={handlers}
focusable={focusable}
element='article'
lang={actualStatus.language}
data-testid='status'
>
{body}
</Hotkeys>
);

View File

@ -248,7 +248,7 @@ const Thread = ({
deleted
/>
) : (
<Hotkeys handlers={handlers} element='article'>
<Hotkeys handlers={handlers} element='article' lang={status.language}>
<div
ref={statusRef}
className='relative'