diff --git a/src/renderer/src/pages/home/Tabs/components/AddButton.tsx b/src/renderer/src/pages/home/Tabs/components/AddButton.tsx index a9a72af99..f9f7c06fd 100644 --- a/src/renderer/src/pages/home/Tabs/components/AddButton.tsx +++ b/src/renderer/src/pages/home/Tabs/components/AddButton.tsx @@ -1,25 +1,32 @@ -import type { ButtonProps } from '@heroui/react' -import { Button } from '@heroui/react' -import { cn } from '@renderer/utils' +import type { ButtonProps } from 'antd' +import { Button } from 'antd' import { PlusIcon } from 'lucide-react' import type { FC } from 'react' +import styled from 'styled-components' -interface Props extends ButtonProps { - children: React.ReactNode -} +const StyledButton = styled(Button)` + height: 36px; + width: calc(var(--assistants-width) - 20px); + justify-content: flex-start; + border-radius: 8px; + padding: 0 12px; + font-size: 13px; + color: var(--color-text-2); -const AddButton: FC = ({ children, className, ...props }) => { + &:hover { + background-color: var(--color-list-item); + } +` + +const AddButton: FC = ({ ...props }) => { return ( - + type="text" + onClick={props.onClick} + icon={}> + {props.children} + ) } diff --git a/src/renderer/src/pages/home/Tabs/components/Sessions.tsx b/src/renderer/src/pages/home/Tabs/components/Sessions.tsx index edf837fb7..d103e3b36 100644 --- a/src/renderer/src/pages/home/Tabs/components/Sessions.tsx +++ b/src/renderer/src/pages/home/Tabs/components/Sessions.tsx @@ -98,9 +98,10 @@ const Sessions: React.FC = ({ agentId }) => { return (
- + {t('agent.session.add.title')} +
{/* h-9 */} = ({ assistant: _assistant, activeTopic, se style={{ height: '100%', padding: '11px 0 10px 10px' }} itemContainerStyle={{ paddingBottom: '8px' }} header={ - EventEmitter.emit(EVENT_NAMES.ADD_NEW_TOPIC)} className="mb-2"> - {t('chat.add.topic.title')} - + <> + EventEmitter.emit(EVENT_NAMES.ADD_NEW_TOPIC)}> + {t('chat.add.topic.title')} + +
+ }> {(topic) => { const isActive = topic.id === activeTopic?.id diff --git a/src/renderer/src/pages/home/Tabs/components/UnifiedAddButton.tsx b/src/renderer/src/pages/home/Tabs/components/UnifiedAddButton.tsx index 2f382ec69..028abc325 100644 --- a/src/renderer/src/pages/home/Tabs/components/UnifiedAddButton.tsx +++ b/src/renderer/src/pages/home/Tabs/components/UnifiedAddButton.tsx @@ -60,9 +60,7 @@ const UnifiedAddButton: FC = ({ onCreateAssistant, setAct return (
- - {t('chat.add.assistant.title')} - + {t('chat.add.assistant.title')}
)