From ca2ff76045d2bdadf553e76683d44b18c96a035d Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 27 Dec 2024 13:32:48 +0800 Subject: [PATCH] 1 --- frontend/src/pages/Deploy/Deployment/List/index.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Deploy/Deployment/List/index.tsx b/frontend/src/pages/Deploy/Deployment/List/index.tsx index 538adc20..953026e4 100644 --- a/frontend/src/pages/Deploy/Deployment/List/index.tsx +++ b/frontend/src/pages/Deploy/Deployment/List/index.tsx @@ -37,8 +37,15 @@ const CodePreviewModal: React.FC<{ onCancel={onCancel} footer={null} width={isFullscreen ? "100%" : 800} - style={isFullscreen ? { top: 0, maxWidth: '100%', margin: 0, paddingBottom: 0 } : undefined} - bodyStyle={{ padding: 0 }} + styles={{ + body: { padding: 0 }, + content: isFullscreen ? { + top: 0, + maxWidth: '100%', + margin: 0, + paddingBottom: 0 + } : undefined + }} destroyOnClose >