From 19cf3b26638ffbbca28e61efbe1b1a11fc8a6eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C3=A9onore=20Voisin?= Date: Tue, 2 Dec 2025 14:30:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(front)=20fix=20opacity=20input=20i?= =?UTF-8?q?n=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix opacity input in error --- CHANGELOG.md | 1 + .../apps/conversations/src/features/chat/components/Chat.tsx | 1 + .../conversations/src/features/chat/components/InputChat.tsx | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09fd21c..056abef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to ### Fixed +- 🐛(front) fix opacity input in error - 🐛(front) resolve React hydration errors - 🚑️(user) allow longer short names #182 diff --git a/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx b/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx index 0059a86..37555db 100644 --- a/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx +++ b/src/frontend/apps/conversations/src/features/chat/components/Chat.tsx @@ -991,6 +991,7 @@ export const Chat = ({ position: relative; bottom: ${isMobile ? '8px' : '20px'}; margin: auto; + background-color: white; z-index: 1000; `} $gap="6px" diff --git a/src/frontend/apps/conversations/src/features/chat/components/InputChat.tsx b/src/frontend/apps/conversations/src/features/chat/components/InputChat.tsx index 6ff134e..d8a320f 100644 --- a/src/frontend/apps/conversations/src/features/chat/components/InputChat.tsx +++ b/src/frontend/apps/conversations/src/features/chat/components/InputChat.tsx @@ -300,7 +300,6 @@ export const InputChat = ({ $css={` display: block; position: relative; - opacity: ${status === 'error' ? '0.5' : '1'}; margin: auto; width: 100%; padding: ${isDesktop ? '0' : '0 10px'}; @@ -423,6 +422,7 @@ export const InputChat = ({ fontSize: '1rem', border: 'none', resize: 'none', + opacity: status === 'error' ? '0.5' : '1', fontFamily: 'inherit', minHeight: '64px', maxHeight: '200px', @@ -573,6 +573,9 @@ export const InputChat = ({ $gap="sm" $padding={{ bottom: 'base' }} $align="space-between" + $css={` + opacity: ${status === 'error' ? '0.5' : '1'}; + `} >