-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed SignInUp Modal misalignment for devices smaller than 400px width (
#6386) Hi @Bonapara, Issue #6385 I encountered an issue with the Modal component where its width was fixed at 400px. While the container housing the Modal adjusted its size based on the screen width, the Modal itself remained at 400px regardless of the screen size. I have implemented a change to address this problem. Could you please review the changes and let me know your thoughts? Thank you! https://github.com/user-attachments/assets/8358aacb-d6c3-440e-895e-7abc4f8a3534 --------- Co-authored-by: Félix Malfait <[email protected]>
- Loading branch information
1 parent
5b7933a
commit c836bbb
Showing
20 changed files
with
286 additions
and
338 deletions.
There are no files selected for viewing
13 changes: 6 additions & 7 deletions
13
...ont/src/modules/auth/components/Modal.tsx → ...src/modules/auth/components/AuthModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import { Modal } from '@/ui/layout/modal/components/Modal'; | ||
import styled from '@emotion/styled'; | ||
import React from 'react'; | ||
|
||
import { ModalLayout } from '@/ui/layout/modal/components/ModalLayout'; | ||
|
||
const StyledContent = styled(ModalLayout.Content)` | ||
const StyledContent = styled(Modal.Content)` | ||
align-items: center; | ||
width: calc(400px - ${({ theme }) => theme.spacing(10 * 2)}); | ||
justify-content: center; | ||
`; | ||
|
||
type AuthModalProps = { children: React.ReactNode }; | ||
|
||
export const AuthModal = ({ children }: AuthModalProps) => ( | ||
<ModalLayout padding={'none'}> | ||
<Modal padding={'none'} modalVariant="primary"> | ||
<StyledContent>{children}</StyledContent> | ||
</ModalLayout> | ||
</Modal> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...front/src/modules/spreadsheet-import/steps/components/SelectSheetStep/SelectSheetStep.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...es/twenty-front/src/modules/spreadsheet-import/steps/components/UploadStep/UploadStep.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.