pl-fe: make quoted status collapsable

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-08-31 18:30:25 +02:00
parent da5fc0449c
commit 48f54cfc9d
3 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ const StatusContent: React.FC<IStatusContent> = React.memo(({
const maybeSetCollapsed = (): void => {
if (!node.current) return;
if (collapsable && onClick && !collapsed) {
if (collapsable && !collapsed) {
if (node.current.clientHeight > MAX_HEIGHT) {
setCollapsed(true);
}

View file

@ -181,7 +181,7 @@ const EventInformation: React.FC<IEventInformation> = ({ params }) => {
<FormattedMessage id='event.description' defaultMessage='Description' />
</Text>
<StatusContent status={status} collapsable={false} translatable />
<StatusContent status={status} translatable />
<TranslateButton status={status} />
</Stack>

View file

@ -48,7 +48,7 @@ const ScheduledStatus: React.FC<IScheduledStatus> = ({ statusId, ...other }) =>
<Stack space={4}>
<StatusContent
status={status}
collapsable
collapsable={false}
/>
{status.media_attachments.length > 0 && (