diff --git a/src/views/ChatPanel.tsx b/src/views/ChatPanel.tsx index c5f1298..da66756 100644 --- a/src/views/ChatPanel.tsx +++ b/src/views/ChatPanel.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { useEffect, useRef } from 'react'; -import { Alert, Center, Container, Stack, px } from '@mantine/core'; +import { ActionIcon, Alert, Center, Container, Stack, px } from '@mantine/core'; import { ScrollArea } from '@mantine/core'; import { useResizeObserver, useTimeout, useViewportSize } from '@mantine/hooks'; import messageUtil from '@/util/MessageUtil'; @@ -28,6 +28,7 @@ import { import InputMessage from '@/views/components/InputMessage'; import MessageContainer from './components/MessageContainer'; import { clearContexts, setValue } from '@/views/reducers/inputSlice'; +import { IconCircleArrowDown, IconCircleArrowDownFilled } from '@tabler/icons-react'; const chatPanel = () => { @@ -108,6 +109,12 @@ const chatPanel = () => { color: 'var(--vscode-editor-foreground)', minWidth: 240 }}> + {!isBottom && { scrollToBottom() }} + title='Bottom' + variant='transparent' sx={{ position: "absolute", bottom: 60, right: 20, zIndex: 999 }}> + + }