Skip to content

Commit 4192515

Browse files
fix: correct styled modal prop usage for resizable behavior
1 parent 9bd75a6 commit 4192515

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export const MODAL_STANDARD_WIDTH = 500;
5050
export const MODAL_MEDIUM_WIDTH = 600;
5151
export const MODAL_LARGE_WIDTH = 900;
5252

53-
const StyledModal = styled(Modal)`
53+
const StyledModal = styled(Modal)<{ $resizable?: boolean }>`
5454
.ant-modal-body {
55-
max-height: 80vh;
55+
max-height: ${({ $resizable }) => ($resizable ? 'none' : '80vh')};
5656
height: auto;
5757
overflow-y: auto;
5858
}
@@ -144,6 +144,7 @@ export function StandardModal({
144144
title
145145
)
146146
}
147+
$resizable={resizable}
147148
resizable={resizable}
148149
draggable={draggable}
149150
>

0 commit comments

Comments
 (0)