File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
superset-frontend/src/components/Modal Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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
4847export const MODAL_STANDARD_WIDTH = 500 ;
4948export const MODAL_MEDIUM_WIDTH = 600 ;
5049export 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
You can’t perform that action at this time.
0 commit comments