From 5e45fb54c5a550b1a6603915608f337639abff98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 12 Sep 2025 15:13:25 +0200 Subject: [PATCH] pl-fe: show parent post on hover in draft posts list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../src/components/status-reply-mentions.tsx | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/pl-fe/src/components/status-reply-mentions.tsx b/packages/pl-fe/src/components/status-reply-mentions.tsx index ce0900661..c6355a0d1 100644 --- a/packages/pl-fe/src/components/status-reply-mentions.tsx +++ b/packages/pl-fe/src/components/status-reply-mentions.tsx @@ -31,7 +31,7 @@ const StatusReplyMentions: React.FC = ({ status, hoverable // The post is a reply, but it has no mentions. // Rare, but it can happen. if (to.length === 0) { - return ( + const body = (
= ({ status, hoverable />
); + + if (hoverable) { + return ( + + + {body} + + + ); + } else { + return body; + } } // The typical case with a reply-to and a list of mentions. @@ -82,9 +98,9 @@ const StatusReplyMentions: React.FC = ({ status, hoverable accounts: , // @ts-ignore wtf? hover: (children: React.ReactNode) => { - if (hoverable && status.in_reply_to_id) { + if (hoverable) { return ( - +