Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
moekumasaka committed Sep 18, 2024
1 parent 3ab8713 commit 3eae5e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
padding: 25px 30px;
}

.grw-tab-content-style-md-down {
padding-top: 25px;
}

.grw-modal-body-style {
max-height: calc(100vh - 100px);
}
Expand Down
8 changes: 6 additions & 2 deletions apps/app/src/client/components/DescendantsPageListModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const DescendantsPageListModal = (): JSX.Element => {
data-testid="descendants-page-list-modal"
className={`grw-descendants-page-list-modal ${styles['grw-descendants-page-list-modal']} ${isWindowExpanded ? 'grw-modal-expanded' : ''} `}
>
<ModalHeader className="p-0" toggle={close} close={buttons}>
<ModalHeader className={isDeviceLargerThanLg ? 'p-0' : ''} toggle={close} close={buttons}>
{isDeviceLargerThanLg && (
<CustomNavTab
activeTab={activeTab}
Expand All @@ -115,7 +115,11 @@ export const DescendantsPageListModal = (): JSX.Element => {
onNavSelected={v => setActiveTab(v)}
/>
)}
<CustomTabContent activeTab={activeTab} navTabMapping={navTabMapping} />
<CustomTabContent
activeTab={activeTab}
navTabMapping={navTabMapping}
additionalClassNames={!isDeviceLargerThanLg ? ['grw-tab-content-style-md-down'] : undefined}
/>
</ModalBody>
</Modal>
);
Expand Down

0 comments on commit 3eae5e6

Please sign in to comment.