mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
🐛 fix: fix draggable issue with agent header (#7968)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user