Feat: Avoid the form sheet covering the chat sheet #3221 (#8768)

### What problem does this PR solve?

Feat: Avoid the form sheet covering the chat sheet #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-10 13:48:12 +08:00
committed by GitHub
parent cedcd13204
commit 2e0905d06a
4 changed files with 9 additions and 9 deletions

View File

@ -25,6 +25,7 @@ interface IProps {
singleDebugDrawerVisible: IModalProps<any>['visible'];
hideSingleDebugDrawer: IModalProps<any>['hideModal'];
showSingleDebugDrawer: IModalProps<any>['showModal'];
chatVisible: boolean;
}
const EmptyContent = () => <div></div>;
@ -34,6 +35,7 @@ const FormSheet = ({
hideModal,
node,
singleDebugDrawerVisible,
chatVisible,
hideSingleDebugDrawer,
showSingleDebugDrawer,
}: IModalProps<any> & IProps) => {
@ -55,7 +57,9 @@ const FormSheet = ({
return (
<Sheet open={visible} modal={false}>
<SheetContent
className={cn('top-20 p-0 flex flex-col pb-20')}
className={cn('top-20 p-0 flex flex-col pb-20', {
'right-[620px]': chatVisible,
})}
closeIcon={false}
>
<SheetHeader>