-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support fixing image sizes at tablet and desktop #12572
base: main
Are you sure you want to change the base?
Conversation
Size Change: +159 B (+0.02%) Total Size: 905 kB
ℹ️ View Unchanged
|
small: 122.5, | ||
medium: 125, |
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.
These names feel a little awkward given that the sizes are now so close (small
was previously 97.5). I wonder if we could get away with making 122.5 the default fixed size everywhere in place of 125?
d8c2001
to
a9e436b
Compare
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
96fa9f8
to
3daf9cb
Compare
3daf9cb
to
96fe6c1
Compare
What does this change?
imageFixedSizes
prop toImageWrapper
, allowing fixed image sizes to be specified formobile
,tablet
anddesktop
breakpointsisFlexibleContainer
prop fromImageWrapper
and moves logic up toCard
componentCardLayout
Why?
Image sizes were already fixed below
tablet
with a custom size for flexible containers toggled by theisFlexibleContainer
prop onImageWrapper
. Fixed image sizes are also required for other containers such as scrollable small which, unlike the flexible containers, has fixed images sizes at all breakpoints.Screenshots