From 6f8c44d23709ccd3d930ba45f7f4c8abe61595a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 13 Oct 2025 19:31:56 +0200 Subject: [PATCH] pl-fe: fix newly introduced overflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/status.tsx | 52 +++++++++---------- .../src/features/embedded-status/index.tsx | 11 +--- 2 files changed, 25 insertions(+), 38 deletions(-) diff --git a/packages/pl-fe/src/components/status.tsx b/packages/pl-fe/src/components/status.tsx index 12b631193..0cafb59f0 100644 --- a/packages/pl-fe/src/components/status.tsx +++ b/packages/pl-fe/src/components/status.tsx @@ -51,7 +51,6 @@ interface IStatus { hoverable?: boolean; variant?: 'default' | 'rounded' | 'slim'; showGroup?: boolean; - accountAction?: React.ReactElement; fromBookmarks?: boolean; className?: string; } @@ -59,7 +58,6 @@ interface IStatus { const Status: React.FC = (props) => { const { status, - accountAction, avatarSize = 42, focusable = true, hoverable = true, @@ -385,33 +383,31 @@ const Status: React.FC = (props) => { {statusInfo}
-
- -
+ + event.stopPropagation()}> + + + + + {!!actualStatus.edited_at && ( + <> + · -
- event.stopPropagation()}> - - - - - {!!actualStatus.edited_at && ( - <> - · - - - - )} -
+ + + )} +
+ } + showAccountHoverCard={hoverable} + withLinkToProfile={hoverable} + approvalStatus={actualStatus.approval_status} + avatarSize={avatarSize} + actionAlignment='top' + />
diff --git a/packages/pl-fe/src/features/embedded-status/index.tsx b/packages/pl-fe/src/features/embedded-status/index.tsx index 42b3637f5..027ee0f4f 100644 --- a/packages/pl-fe/src/features/embedded-status/index.tsx +++ b/packages/pl-fe/src/features/embedded-status/index.tsx @@ -4,12 +4,10 @@ import { useHistory } from 'react-router-dom'; import { fetchStatus } from 'pl-fe/actions/statuses'; import MissingIndicator from 'pl-fe/components/missing-indicator'; -import SiteLogo from 'pl-fe/components/site-logo'; import Status from 'pl-fe/components/status'; import Spinner from 'pl-fe/components/ui/spinner'; import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch'; import { useAppSelector } from 'pl-fe/hooks/use-app-selector'; -import { useLogo } from 'pl-fe/hooks/use-logo'; import { iframeId } from 'pl-fe/iframe'; import { makeGetStatus } from 'pl-fe/selectors'; @@ -25,7 +23,6 @@ const EmbeddedStatus: React.FC = ({ params }) => { const history = useHistory(); const getStatus = useCallback(makeGetStatus(), []); const intl = useIntl(); - const { src: logoSrc } = useLogo(); const status = useAppSelector(state => getStatus(state, { id: params.statusId })); @@ -49,17 +46,11 @@ const EmbeddedStatus: React.FC = ({ params }) => { }, '*'); }, [status, loading]); - const logo = logoSrc && ( -
- -
- ); - const renderInner = () => { if (loading) { return ; } else if (status) { - return ; + return ; } else { return ; }