🐛 fix: fix draggable issue with agent header (#7968)

This commit is contained in:
Arvin Xu
2025-05-26 01:31:25 +08:00
committed by GitHub
parent 8416feca99
commit cd84241709
@@ -4,24 +4,11 @@ import { ChatHeader } from '@lobehub/ui/chat';
import { useGlobalStore } from '@/store/global';
import { systemStatusSelectors } from '@/store/global/selectors';
import { electronStylish } from '@/styles/electron';
import HeaderAction from './HeaderAction';
import Main from './Main';
const Header = () => {
const showHeader = useGlobalStore(systemStatusSelectors.showChatHeader);
return (
showHeader && (
<ChatHeader
className={electronStylish.draggable}
left={<Main className={electronStylish.nodrag} />}
right={<HeaderAction className={electronStylish.nodrag} />}
style={{ paddingInline: 8, position: 'initial', zIndex: 11 }}
/>
)
);
return showHeader && <ChatHeader style={{ paddingInline: 8, position: 'initial', zIndex: 11 }} />;
};
export default Header;