diff --git a/src/renderer/src/pages/home/Navbar.tsx b/src/renderer/src/pages/home/Navbar.tsx index 5e7579ee9..ec2998663 100644 --- a/src/renderer/src/pages/home/Navbar.tsx +++ b/src/renderer/src/pages/home/Navbar.tsx @@ -66,6 +66,36 @@ const HeaderNavbar: FC = ({ activeAssistant, setActiveAssistant, activeTo }) } + const ControlButtons: FC<{ IconComponent: typeof NavbarIcon }> = ({ IconComponent }) => ( + <> + + SearchPopup.show()}> + + + + + + + + + + {topicPosition === 'right' && !showTopics && ( + + + + + + )} + {topicPosition === 'right' && showTopics && ( + + + + + + )} + + ) + return ( @@ -114,36 +144,8 @@ const HeaderNavbar: FC = ({ activeAssistant, setActiveAssistant, activeTo - - {topicPosition === 'right' && !showTopics && ( - - - - - - )} - {topicPosition === 'right' && showTopics && ( - - - - - - )} {/* For Mac, show search and expand without WindowControls */} - {!isWin && !isLinux && ( - <> - - SearchPopup.show()}> - - - - - - - - - - )} + {!isWin && !isLinux && } {/* Search, Expand and WindowControls positioned at the right edge */} {(isWin || isLinux) && ( @@ -157,16 +159,7 @@ const HeaderNavbar: FC = ({ activeAssistant, setActiveAssistant, activeTo alignItems: 'center', gap: 6 }}> - - SearchPopup.show()}> - - - - - - - - + )}