-
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
fix: New Relation Design hot fix #7423
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
This pull request implements responsive design changes for the relation settings form card in the data model settings, addressing issue #7353.
- Added media queries in
SettingsDataModelFieldRelationSettingsFormCard.tsx
to create a mobile-specific layout - Implemented flex direction change to column for mobile screens using
MOBILE_VIEWPORT
constant - Added conditional image rotation for mobile view using the
flip
prop onStyledRelationImage
- Retained original desktop layout while improving mobile display as requested
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
`; | ||
|
||
const StyledRelationImage = styled.img<{ flip?: boolean }>` | ||
transform: ${({ flip }) => (flip ? 'scaleX(-1) rotate(270deg)' : 'none')}; | ||
@media (max-width: ${MOBILE_VIEWPORT}px) { | ||
transform: ${({ flip }) => (flip ? 'scaleX(-1) rotate(450deg)' : 'none')}; |
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.
style: Consider using a CSS transform function for better performance
@harshit078 its still broken, Ill suggest to use useIsMobile hook instead! 2024-10-04.17-20-21.mp4 |
@Bonapara we should merge this right? since its broken on main branch 2024-10-04.17-25-41.mp4 |
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.
LGTM!
@FelixMalfait could u re-review please! |
Ah, missed it! |
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.
Thank you!
Awarding harshit078: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/harshit078 |
Thanks @harshit078 for your contribution! |
## Description - This PR solves the issue twentyhq#7353 - [x] Improved layout for mobile and desktop - [ ] Added tooltip on hover --------- Co-authored-by: Nitin Koche <[email protected]> Co-authored-by: Félix Malfait <[email protected]>
## Description
This PR solves the issue New Relation Design hot fix #7353
Improved layout for mobile and desktop
Added tooltip on hover