This commit is contained in:
Zacharias-Brohn
2026-01-14 20:24:09 +01:00
parent a14d69234f
commit 9dfc074cdf
-17
View File
@@ -18,7 +18,6 @@ import {
Container, Container,
Group, Group,
Paper, Paper,
rem,
ScrollArea, ScrollArea,
Select, Select,
Stack, Stack,
@@ -86,7 +85,6 @@ export default function ChatLayout() {
}, },
]); ]);
const [inputValue, setInputValue] = useState(''); const [inputValue, setInputValue] = useState('');
const [isInputFocused, setIsInputFocused] = useState(false);
const [isLoadingChats, setIsLoadingChats] = useState(false); const [isLoadingChats, setIsLoadingChats] = useState(false);
// Model State // Model State
@@ -352,25 +350,11 @@ export default function ChatLayout() {
</Stack> </Stack>
</ScrollArea> </ScrollArea>
<Paper
withBorder
p="xs"
radius="xl"
shadow="sm"
style={{
transition: 'border-color 0.2s ease',
borderColor: isInputFocused ? theme.colors[primaryColor][6] : undefined,
}}
>
<InputWithButton <InputWithButton
variant="unstyled"
placeholder="Type your message..." placeholder="Type your message..."
value={inputValue} value={inputValue}
onChange={(event) => setInputValue(event.currentTarget.value)} onChange={(event) => setInputValue(event.currentTarget.value)}
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
onFocus={() => setIsInputFocused(true)}
onBlur={() => setIsInputFocused(false)}
style={{ flex: 1, paddingLeft: rem(10) }}
rightSection={ rightSection={
<ActionIcon <ActionIcon
onClick={handleSendMessage} onClick={handleSendMessage}
@@ -384,7 +368,6 @@ export default function ChatLayout() {
</ActionIcon> </ActionIcon>
} }
/> />
</Paper>
</Container> </Container>
</AppShell.Main> </AppShell.Main>
</AppShell> </AppShell>