-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feat: responsive designs adaptable to giant screens #251
Feat: responsive designs adaptable to giant screens #251
Conversation
braianj
commented
May 1, 2023
Pull Request Test Coverage Report for Build 4886845623
💛 - Coveralls |
cardWidth: isBigScreen ? 310 : 260, | ||
cardMargin: 14, | ||
containerMargin: 48, | ||
}) |
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.
This looks too hardcoded 😅 , Isn't any other way to get these values directly from the components? That way, we can eventually create an standard component that handles all this nice behavior
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.
I removed the isBigDesktop and set a card fixed width in useCardsByWidth hook and also into the css.
Is this good enough or should I extract those numbers (cardWidth, cardMargin, containerMargin) dynamically using useRef?
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.
We should detect it dynamically, but it is not necessarily urgent. We can merge it if there is and issue to fix it later.
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.