From 953f8469580c04fd38f381a591cd3bb22502954f Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Mon, 13 Mar 2023 22:20:50 +0800 Subject: [PATCH] fix: loading and send button, mobile style feat: sibling switch, mobile style fix: only the real submitting message will blink feat: drop the text version username, use a similar square. (or it will mass up the sibling switch) --- client/src/components/Main/SubmitButton.jsx | 4 ++-- client/src/components/Main/TextChat.jsx | 4 ++-- client/src/components/Messages/Message.jsx | 17 +++++++++++++---- .../src/components/Messages/SiblingSwitch.jsx | 2 +- client/src/mobile.css | 8 ++++++++ 5 files changed, 26 insertions(+), 9 deletions(-) diff --git a/client/src/components/Main/SubmitButton.jsx b/client/src/components/Main/SubmitButton.jsx index 802d1a88c3..ed570f5c76 100644 --- a/client/src/components/Main/SubmitButton.jsx +++ b/client/src/components/Main/SubmitButton.jsx @@ -10,7 +10,7 @@ export default function SubmitButton({ submitMessage }) { if (isSubmitting) { return ( - diff --git a/client/src/mobile.css b/client/src/mobile.css index e0e3988410..471f207f67 100644 --- a/client/src/mobile.css +++ b/client/src/mobile.css @@ -22,6 +22,14 @@ } @media (max-width: 767px) { + .sibling-switch { + left: 114px; + top: unset; + bottom: 6px; + visibility: visible; + z-index: 2; + } + .nav-close-button { display: block; position: absolute;