fix: table cell refresh

This commit is contained in:
jialin
2024-09-14 16:53:23 +08:00
parent 05390743e0
commit c1c24b9e5b
5 changed files with 50 additions and 22 deletions
@@ -22,7 +22,7 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
setModalSize((size: any) => {
return {
width: size.width === 600 ? '100%' : 600,
height: size.height === 420 ? 'calc(100vh - 100px)' : 420
height: size.height === 420 ? 'calc(100vh - 86px)' : 420
};
});
};
@@ -32,7 +32,7 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
isFullScreenRef.current = false;
setModalSize({
width: '100%',
height: 'calc(100vh - 100px)'
height: 'calc(100vh - 86px)'
});
}
}, [open]);
@@ -58,6 +58,11 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
closeIcon={true}
maskClosable={false}
keyboard={true}
styles={{
content: {
borderRadius: 0
}
}}
width={modalSize.width}
footer={null}
>