changes
This commit is contained in:
@@ -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,39 +350,24 @@ export default function ChatLayout() {
|
|||||||
</Stack>
|
</Stack>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
|
|
||||||
<Paper
|
<InputWithButton
|
||||||
withBorder
|
placeholder="Type your message..."
|
||||||
p="xs"
|
value={inputValue}
|
||||||
radius="xl"
|
onChange={(event) => setInputValue(event.currentTarget.value)}
|
||||||
shadow="sm"
|
onKeyDown={handleKeyDown}
|
||||||
style={{
|
rightSection={
|
||||||
transition: 'border-color 0.2s ease',
|
<ActionIcon
|
||||||
borderColor: isInputFocused ? theme.colors[primaryColor][6] : undefined,
|
onClick={handleSendMessage}
|
||||||
}}
|
variant="filled"
|
||||||
>
|
color={primaryColor}
|
||||||
<InputWithButton
|
size={32}
|
||||||
variant="unstyled"
|
radius="xl"
|
||||||
placeholder="Type your message..."
|
disabled={!inputValue.trim()}
|
||||||
value={inputValue}
|
>
|
||||||
onChange={(event) => setInputValue(event.currentTarget.value)}
|
<IconSend size={18} />
|
||||||
onKeyDown={handleKeyDown}
|
</ActionIcon>
|
||||||
onFocus={() => setIsInputFocused(true)}
|
}
|
||||||
onBlur={() => setIsInputFocused(false)}
|
/>
|
||||||
style={{ flex: 1, paddingLeft: rem(10) }}
|
|
||||||
rightSection={
|
|
||||||
<ActionIcon
|
|
||||||
onClick={handleSendMessage}
|
|
||||||
variant="filled"
|
|
||||||
color={primaryColor}
|
|
||||||
size={32}
|
|
||||||
radius="xl"
|
|
||||||
disabled={!inputValue.trim()}
|
|
||||||
>
|
|
||||||
<IconSend size={18} />
|
|
||||||
</ActionIcon>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</Paper>
|
|
||||||
</Container>
|
</Container>
|
||||||
</AppShell.Main>
|
</AppShell.Main>
|
||||||
</AppShell>
|
</AppShell>
|
||||||
|
|||||||
Reference in New Issue
Block a user