We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bd75a6 commit 4192515Copy full SHA for 4192515
superset-frontend/src/components/Modal/StandardModal.tsx
@@ -50,9 +50,9 @@ export const MODAL_STANDARD_WIDTH = 500;
50
export const MODAL_MEDIUM_WIDTH = 600;
51
export const MODAL_LARGE_WIDTH = 900;
52
53
-const StyledModal = styled(Modal)`
+const StyledModal = styled(Modal)<{ $resizable?: boolean }>`
54
.ant-modal-body {
55
- max-height: 80vh;
+ max-height: ${({ $resizable }) => ($resizable ? 'none' : '80vh')};
56
height: auto;
57
overflow-y: auto;
58
}
@@ -144,6 +144,7 @@ export function StandardModal({
144
title
145
)
146
147
+ $resizable={resizable}
148
resizable={resizable}
149
draggable={draggable}
150
>
0 commit comments