Skip to content

Commit 4b53e48

Browse files
Update StandardModal.tsx
1 parent 2d86b12 commit 4b53e48

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

superset-frontend/src/components/Modal/StandardModal.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,16 @@ interface StandardModalProps {
4141
maskClosable?: boolean;
4242
wrapProps?: object;
4343
contentLoading?: boolean;
44-
resizable?: boolean;
4544
}
4645

4746
// Standard modal widths
4847
export const MODAL_STANDARD_WIDTH = 500;
4948
export const MODAL_MEDIUM_WIDTH = 600;
5049
export const MODAL_LARGE_WIDTH = 900;
5150

52-
const StyledModal = styled(Modal)<{ $resizable?: boolean }>`
51+
const StyledModal = styled(Modal)`
5352
.ant-modal-body {
54-
max-height: ${({ $resizable }) => ($resizable ? 'none' : '60vh')};
53+
max-height:80vh;
5554
height: auto;
5655
overflow-y: auto;
5756
padding: 0;
@@ -117,7 +116,6 @@ export function StandardModal({
117116
maskClosable = false,
118117
wrapProps,
119118
contentLoading = false,
120-
resizable = false,
121119
}: StandardModalProps) {
122120
const primaryButtonName = saveText || (isEditMode ? t('Save') : t('Add'));
123121

@@ -132,8 +130,7 @@ export function StandardModal({
132130
show={show}
133131
width={`${width}px`}
134132
wrapProps={wrapProps}
135-
$resizable={resizable}
136-
resizable={resizable}
133+
centered={centered}
137134
title={
138135
icon ? (
139136
<ModalTitleWithIcon

0 commit comments

Comments
 (0)