From 48f54cfc9d171c3990848d8aecfa96e4c427c870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 31 Aug 2024 18:30:25 +0200 Subject: [PATCH] pl-fe: make quoted status collapsable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/components/status-content.tsx | 2 +- packages/pl-fe/src/features/event/event-information.tsx | 2 +- .../features/scheduled-statuses/components/scheduled-status.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pl-fe/src/components/status-content.tsx b/packages/pl-fe/src/components/status-content.tsx index 5f8d73819..80752e949 100644 --- a/packages/pl-fe/src/components/status-content.tsx +++ b/packages/pl-fe/src/components/status-content.tsx @@ -71,7 +71,7 @@ const StatusContent: React.FC = React.memo(({ const maybeSetCollapsed = (): void => { if (!node.current) return; - if (collapsable && onClick && !collapsed) { + if (collapsable && !collapsed) { if (node.current.clientHeight > MAX_HEIGHT) { setCollapsed(true); } diff --git a/packages/pl-fe/src/features/event/event-information.tsx b/packages/pl-fe/src/features/event/event-information.tsx index 61055a104..ce3738359 100644 --- a/packages/pl-fe/src/features/event/event-information.tsx +++ b/packages/pl-fe/src/features/event/event-information.tsx @@ -181,7 +181,7 @@ const EventInformation: React.FC = ({ params }) => { - + diff --git a/packages/pl-fe/src/features/scheduled-statuses/components/scheduled-status.tsx b/packages/pl-fe/src/features/scheduled-statuses/components/scheduled-status.tsx index 9da07d9a7..1e6888c95 100644 --- a/packages/pl-fe/src/features/scheduled-statuses/components/scheduled-status.tsx +++ b/packages/pl-fe/src/features/scheduled-statuses/components/scheduled-status.tsx @@ -48,7 +48,7 @@ const ScheduledStatus: React.FC = ({ statusId, ...other }) => {status.media_attachments.length > 0 && (