From 3e16e43326ca901c2a7e0a5266bb7e7c23d1eda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 27 Oct 2025 15:56:22 +0100 Subject: [PATCH] pl-fe: preparing for compose form panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../src/features/compose/components/compose-form.tsx | 11 ++++++----- .../compose/components/content-type-button.tsx | 7 ++++--- .../compose/components/language-dropdown.tsx | 5 +++-- .../features/compose/components/privacy-dropdown.tsx | 12 ++++++++---- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/packages/pl-fe/src/features/compose/components/compose-form.tsx b/packages/pl-fe/src/features/compose/components/compose-form.tsx index 3ecd9345e..9294483cc 100644 --- a/packages/pl-fe/src/features/compose/components/compose-form.tsx +++ b/packages/pl-fe/src/features/compose/components/compose-form.tsx @@ -122,9 +122,10 @@ interface IComposeForm { group?: string; withAvatar?: boolean; transparent?: boolean; + compact?: boolean; } -const ComposeForm = ({ id, shouldCondense, autoFocus, clickableAreaRef, event, group, withAvatar, transparent }: IComposeForm) => { +const ComposeForm = ({ id, shouldCondense, autoFocus, clickableAreaRef, event, group, withAvatar, transparent, compact }: IComposeForm) => { const history = useHistory(); const intl = useIntl(); const dispatch = useAppDispatch(); @@ -323,9 +324,9 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab const selectButtons = []; - if (features.privacyScopes && !group && !groupId) selectButtons.push(); - if (features.richText) selectButtons.push(); - if (features.postLanguages) selectButtons.push(); + if (features.privacyScopes && !group && !groupId) selectButtons.push(); + if (features.richText) selectButtons.push(); + if (features.postLanguages) selectButtons.push(); const actionsMenu: Menu = []; @@ -425,7 +426,7 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab
{maxTootChars && (
- + {!compact && }
)} diff --git a/packages/pl-fe/src/features/compose/components/content-type-button.tsx b/packages/pl-fe/src/features/compose/components/content-type-button.tsx index 4242c5d70..fffb5cda9 100644 --- a/packages/pl-fe/src/features/compose/components/content-type-button.tsx +++ b/packages/pl-fe/src/features/compose/components/content-type-button.tsx @@ -19,9 +19,10 @@ const messages = defineMessages({ interface IContentTypeButton { composeId: string; + compact?: boolean; } -const ContentTypeButton: React.FC = ({ composeId }) => { +const ContentTypeButton: React.FC = ({ composeId, compact }) => { const intl = useIntl(); const dispatch = useAppDispatch(); const instance = useInstance(); @@ -88,10 +89,10 @@ const ContentTypeButton: React.FC = ({ composeId }) => {