From 100a4d6020c961d37c354f2c5902025af0b8d233 Mon Sep 17 00:00:00 2001 From: Michael Piazza Date: Wed, 7 Jun 2023 14:18:42 -0400 Subject: [PATCH] [PAY-1350] Update send button styling on web (#3523) Co-authored-by: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> --- .../data-entry/TextAreaV2.module.css | 6 +++ .../src/components/data-entry/TextAreaV2.tsx | 7 +++- .../components/ChatComposer.module.css | 39 +++++++++++++++---- .../chat-page/components/ChatComposer.tsx | 22 +++++++---- 4 files changed, 59 insertions(+), 15 deletions(-) diff --git a/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.module.css b/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.module.css index fb7840b875d..022142fcef5 100644 --- a/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.module.css +++ b/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.module.css @@ -74,3 +74,9 @@ align-items: flex-end; gap: var(--unit-1); } + +.children { + display: flex; + align-items: center; + overflow: visible; +} diff --git a/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.tsx b/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.tsx index 2a9a893c0b8..928e98f0d0a 100644 --- a/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.tsx +++ b/apps/audius-client/packages/web/src/components/data-entry/TextAreaV2.tsx @@ -102,7 +102,12 @@ export const TextAreaV2 = (props: TextAreaV2Props) => { />
-
{children}
+
+ {children} +
{showMaxLength ? (
& { const MAX_MESSAGE_LENGTH = 10000 +type ChatSendButtonProps = { disabled: boolean } + +export const ChatSendButton = ({ disabled }: ChatSendButtonProps) => { + return ( + } + /> + ) +} + export const ChatComposer = (props: ChatComposerProps) => { const { chatId } = props const dispatch = useDispatch() @@ -81,13 +95,7 @@ export const ChatComposer = (props: ChatComposerProps) => { grows resize > - } - /> +