diff --git a/src/renderer/src/components/Popups/FloatingSidebar.tsx b/src/renderer/src/components/Popups/FloatingSidebar.tsx index 1bb13a8c69..d5a576309d 100644 --- a/src/renderer/src/components/Popups/FloatingSidebar.tsx +++ b/src/renderer/src/components/Popups/FloatingSidebar.tsx @@ -52,29 +52,28 @@ const FloatingSidebar: FC = ({ setActiveAssistant={setActiveAssistant} setActiveTopic={setActiveTopic} position={position} - forceToSeeAllTab={true}> + forceToSeeAllTab={true} + style={{ + background: 'transparent', + border: 'none' + }} + /> ) return ( { - setOpen(visible) - }} + onOpenChange={setOpen} content={content} trigger={['hover', 'click', 'contextMenu']} placement="bottomRight" - arrow={false} + showArrow mouseEnterDelay={0.8} // 800ms delay before showing mouseLeaveDelay={20} styles={{ body: { - padding: 0, - background: 'var(--color-background)', - border: '1px solid var(--color-border)', - borderRadius: '8px', - boxShadow: '0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12)' + padding: 0 } }}> {children} diff --git a/src/renderer/src/pages/home/Tabs/index.tsx b/src/renderer/src/pages/home/Tabs/index.tsx index 1806e3a237..b4a0fc2c61 100644 --- a/src/renderer/src/pages/home/Tabs/index.tsx +++ b/src/renderer/src/pages/home/Tabs/index.tsx @@ -21,6 +21,7 @@ interface Props { setActiveTopic: (topic: Topic) => void position: 'left' | 'right' forceToSeeAllTab?: boolean + style?: React.CSSProperties } type Tab = 'assistants' | 'topic' | 'settings' @@ -33,7 +34,8 @@ const HomeTabs: FC = ({ setActiveAssistant, setActiveTopic, position, - forceToSeeAllTab + forceToSeeAllTab, + style }) => { const { addAssistant } = useAssistants() const [tab, setTab] = useState(position === 'left' ? _tab || 'assistants' : 'topic') @@ -100,7 +102,7 @@ const HomeTabs: FC = ({ }, [position, tab, topicPosition, forceToSeeAllTab]) return ( - + {(showTab || (forceToSeeAllTab == true && !showTopics)) && (