Fit content to modal (#1632)

* Fit content to modal

* update test snap
This commit is contained in:
sunghyunkang1111 2023-10-02 11:27:58 -05:00 committed by GitHub
parent d2beea3b06
commit 9981889120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -18,7 +18,16 @@ export const WelcomeModal = ({ visible }: { visible: boolean }): JSX.Element =>
return (
<>
<Modal isOpen={isModalVisible} onDismiss={hideModal} isBlocking={false}>
<Modal
isOpen={isModalVisible}
onDismiss={hideModal}
isBlocking={false}
styles={{
scrollableContent: {
minHeight: 680,
},
}}
>
<Stack className="modalContentPadding">
<Stack horizontal>
<Stack horizontal grow={4} horizontalAlign="end">

View File

@ -6,6 +6,13 @@ exports[`Query Copilot Welcome Modal snapshot test should render when isOpen is
isBlocking={false}
isOpen={true}
onDismiss={[Function]}
styles={
Object {
"scrollableContent": Object {
"minHeight": 680,
},
}
}
>
<Stack
className="modalContentPadding"