From 24059bf711fd221466e11f8d6773f667f4554331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 31 Aug 2024 19:50:45 +0200 Subject: [PATCH] pl-fe: actually fix quote max height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../pl-fe/src/components/quoted-status.tsx | 1 + .../pl-fe/src/components/status-content.tsx | 26 ++++++++++++------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/pl-fe/src/components/quoted-status.tsx b/packages/pl-fe/src/components/quoted-status.tsx index 6b46be2cd..4c0ec79f3 100644 --- a/packages/pl-fe/src/components/quoted-status.tsx +++ b/packages/pl-fe/src/components/quoted-status.tsx @@ -100,6 +100,7 @@ const QuotedStatus: React.FC = ({ status, onCancel, compose }) => {status.quote_id && } diff --git a/packages/pl-fe/src/components/status-content.tsx b/packages/pl-fe/src/components/status-content.tsx index 80752e949..385b6ebc0 100644 --- a/packages/pl-fe/src/components/status-content.tsx +++ b/packages/pl-fe/src/components/status-content.tsx @@ -30,12 +30,17 @@ const messages = defineMessages({ interface IReadMoreButton { onClick: React.MouseEventHandler; + quote?: boolean; } /** Button to expand a truncated status (due to too much content) */ -const ReadMoreButton: React.FC = ({ onClick }) => ( +const ReadMoreButton: React.FC = ({ onClick, quote }) => (
-
+