From a14d69234fc55b64025c54587b34aa607a3a7089 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Wed, 14 Jan 2026 20:20:50 +0100 Subject: [PATCH] changes --- components/Chat/ChatLayout.tsx | 65 ++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/components/Chat/ChatLayout.tsx b/components/Chat/ChatLayout.tsx index aad87a2..d4cb903 100644 --- a/components/Chat/ChatLayout.tsx +++ b/components/Chat/ChatLayout.tsx @@ -24,6 +24,7 @@ import { Stack, Text, TextInput, + TextInputProps, Title, Tooltip, UnstyledButton, @@ -48,6 +49,25 @@ interface Chat { messages?: Message[]; } +export function InputWithButton(props: TextInputProps) { + const theme = useMantineTheme(); + + return ( + + + + } + {...props} + /> + ); +} + export default function ChatLayout() { const [mobileOpened, { toggle: toggleMobile }] = useDisclosure(); const [desktopOpened, { toggle: toggleDesktop }] = useDisclosure(true); @@ -342,29 +362,28 @@ export default function ChatLayout() { borderColor: isInputFocused ? theme.colors[primaryColor][6] : undefined, }} > - - setInputValue(event.currentTarget.value)} - onKeyDown={handleKeyDown} - onFocus={() => setIsInputFocused(true)} - onBlur={() => setIsInputFocused(false)} - style={{ flex: 1, paddingLeft: rem(10) }} - size="md" - /> - - - - + setInputValue(event.currentTarget.value)} + onKeyDown={handleKeyDown} + onFocus={() => setIsInputFocused(true)} + onBlur={() => setIsInputFocused(false)} + style={{ flex: 1, paddingLeft: rem(10) }} + rightSection={ + + + + } + />