-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed SignInUp Modal misalignment for devices smaller than 400px width #6386
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
The pull request addresses the misalignment issue of the SignInUp Modal on devices with a width smaller than 400px by removing the fixed width constraint.
- Removed fixed width:
packages/twenty-front/src/modules/auth/components/Modal.tsx
- Eliminated the hardcoded 400px width from theStyledContent
styled component to enhance responsiveness. - Improved alignment: The modal now dynamically adjusts to fit smaller screen sizes, ensuring better user experience on devices under 400px width.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Hi @ehconitin, thanks so much for this PR. Do you think you can address the issue of pricing not switching to dark mode in the same PR? |
@Bonapara |
I reviewed the issue again, and it appears the problem isn't with the pricing screen but with the signup page itself. When the mode is selected as light, the pricing page renders with the correct theme colors, indicating that the issue lies with the signup page. Its the same with non mobile screens Please refer to the video for more details. 2024-07-25.21-51-31.mp4 |
@Bonapara |
I had a look at PR#5758 Creating variants should be easy. |
Commited a temporay fix for modals. |
I have created a new Additionally, I introduced Could you please confirm if the Note: I have not deleted the old Modal component yet but it is redundant after this change. I will clean up the code after receiving your feedback. |
@lucasbordeau, maybe you have some thoughts too! |
packages/twenty-front/src/modules/ui/input/color-scheme/components/ColorSchemePicker.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/modal/components/EnhancedModalLayout.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/modal/components/EnhancedModalLayout.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/modal/components/EnhancedModalLayout.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/modal/components/ModalLayout.tsx
Show resolved
Hide resolved
...ages/twenty-front/src/modules/ui/layout/modal/components/__stories__/ModalLayout.stories.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be a nice improvement! I think I didn't fully get the intention/strategy behind that new component, hopefully we can clarify and merge this. Thanks (again and again!) for your work
This reverts commit b16bd56.
This is how the code would look after changes. |
@@ -43,8 +43,6 @@ export const ModalWrapper = ({ | |||
<> | |||
{isOpen && ( | |||
<StyledModal size="large" onClose={onClose} isClosable={true}> | |||
{/*Remove onClose and isClosable if do not this compoenent key hotscoped */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FelixMalfait
I had a question regarding this import modal.
This was not initially hotscoped probably because accidental click outside while importing will close the modal
This comment is more of a question.
I forgot to raise this earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the behavior seems acceptable like that to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, so should be hotscoped or not?
I am sorry but Just want to confirm, cuz accidental touch might lead to loss of all that import steps user might be doing.
Presently it is hotscoped which it initially was not.
Thanks @ehconitin for your contribution! |
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!
2024-07-24.14-00-05.mp4