This commit is contained in:
dengqichen 2024-12-27 13:32:48 +08:00
parent 5abfb2e6ce
commit ca2ff76045

View File

@ -37,8 +37,15 @@ const CodePreviewModal: React.FC<{
onCancel={onCancel} onCancel={onCancel}
footer={null} footer={null}
width={isFullscreen ? "100%" : 800} width={isFullscreen ? "100%" : 800}
style={isFullscreen ? { top: 0, maxWidth: '100%', margin: 0, paddingBottom: 0 } : undefined} styles={{
bodyStyle={{ padding: 0 }} body: { padding: 0 },
content: isFullscreen ? {
top: 0,
maxWidth: '100%',
margin: 0,
paddingBottom: 0
} : undefined
}}
destroyOnClose destroyOnClose
> >
<Editor <Editor