Skip to content

Commit

Permalink
style: modal dialog issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaknasir committed Aug 10, 2021
1 parent fe1223c commit f0d5589
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/generic/FormSwitchGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function FormSwitchGroup({
className={className}
>
<div className="d-flex flex-column">
<div className="d-flex flex-row justify-content-between align-items-center pb-2 z-index-3">
<div className="d-flex flex-row justify-content-between align-items-center pb-2">
<Form.Label className="h4 text-primary-500 m-0">
{label}
</Form.Label>
Expand Down
23 changes: 13 additions & 10 deletions src/pages-and-resources/app-settings-modal/AppSettingsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ function AppSettingsModal({
hasCloseButton={isMobile}
isFullscreenOnMobile
>
<ModalDialog.Header>
<ModalDialog.Title>
{title}
</ModalDialog.Title>
</ModalDialog.Header>
{
loadingStatus === RequestStatus.SUCCESSFUL && (
<Formik
Expand All @@ -123,13 +128,14 @@ function AppSettingsModal({
onSubmit={handleFormSubmit}
>
{(formikProps) => (
<Form onSubmit={formikProps.handleSubmit}>
<ModalDialog.Header>
<ModalDialog.Title>
{title}
</ModalDialog.Title>
</ModalDialog.Header>
<ModalDialog.Body className="overflow-hidden">
<Form
onSubmit={formikProps.handleSubmit}
style={{
width: '100%', height: '100%', display: 'flex', 'flex-flow': 'column',
}}
>

<ModalDialog.Body>
<FormSwitchGroup
id={`enable-${appId}-toggle`}
name="enabled"
Expand Down Expand Up @@ -166,9 +172,6 @@ function AppSettingsModal({
<ModalDialog.Footer
className={classNames(
'p-4',
{
'modal-footer': isMobile,
},
)}
>
<ActionRow>
Expand Down

0 comments on commit f0d5589

Please sign in to comment.