Skip to content

Commit

Permalink
fix: CozyDialogContent for immersive mode
Browse files Browse the repository at this point in the history
I don't know yet why we need to create the Dialog by ourselve
without using the props from UI, but let's make a quick fix
in order to put some padding to the content.
  • Loading branch information
Crash-- committed May 19, 2023
1 parent 5d7922f commit c29bde5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion packages/cozy-harvest-lib/src/components/AccountModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ export class AccountModal extends Component {
</DialogContent>
)}
{!error && !fetching && (
<DialogContent className={isMobile ? 'u-p-0' : 'u-pt-0'}>
<DialogContent
className={isMobile ? 'u-pt-0 u-pr-0 u-pl-0' : 'u-pt-0'}
style={{
paddingBottom: 'var(--flagship-bottom-height)'
}}
>
<KonnectorAccountWrapper
initialActiveTab={initialActiveTab}
konnector={konnector}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ exports[`AccountModal with an account should display the AccountSelect & Content
/>
</KonnectorModalHeader>
<ForwardRef(WithStyles)
className="u-p-0"
className="u-pt-0 u-pr-0 u-pl-0"
style={
Object {
"paddingBottom": "var(--flagship-bottom-height)",
}
}
>
<KonnectorAccountWrapper
account={
Expand Down Expand Up @@ -155,7 +160,12 @@ exports[`AccountModal with an account should display the AccountSelect & Content
/>
</KonnectorModalHeader>
<ForwardRef(WithStyles)
className="u-p-0"
className="u-pt-0 u-pr-0 u-pl-0"
style={
Object {
"paddingBottom": "var(--flagship-bottom-height)",
}
}
>
<KonnectorAccountWrapper
account={
Expand Down

0 comments on commit c29bde5

Please sign in to comment.