You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I the only one who gets a lot confused trying to understand how the sizes prop work?
At first glance, I assumed that the default breakpoints were matching the ones proposed by tailwindcss and therefore mobile first (usage of min-width).
But by looking at the generated srcset/sizes, it seems like max-width is being used.
➡ Seems more appropriate but still not mobile-first approach.
Maybe the documentation should explain a bit more how the responsive is handled under the hood? At least explain that xl means "until device width of 1280px"?
Reacted by Damien Robinson, Bobby Jenkins, mlsen, Lone James Jensen, Colin Peyrat, Dmitriy, Matteo Rigoni, Gift Egwuenu, Lehoczky Zoltán, Saifur Rahman Mohsin and 2 more
Would be nice to use keywords like >= and <, so that we can choose between mobile-first and desktop-first.
The SCSS include-media package uses this approach, which is very intuitive.
I've made a PR with a new strategy option in the config, which allows us to opt for mobile-first mode.
It replaces the media-queries with a min-width syntax, and sort the screens in descending order (while keeping the lowest screen as the default one)
Reacted by Mickael Chanrion, Gift Egwuenu, Jürg Hunziker and Tomás Jacob
Activity
shadow81627 commentedon Jul 8, 2021
I also get a bit confused by the image size breakpoints I had to define a new set to match Vuetify.
GabGee commentedon Jul 13, 2021
Same goes here.. I was expecting at least to be able to define if use a mobile first or desktop first approach ( https://joegalley.com/articles/mobile-first-vs-desktop-first-media-queries ), most of the website nowadays are developed with a mobile first approach.
dosstx commentedon Sep 23, 2021
Anyone using Bootstrap? If so, how did you define the screens for the Bootstrap grid?
nagman commentedon Feb 3, 2022
Would be nice to use keywords like
>=and<, so that we can choose between mobile-first and desktop-first.The SCSS include-media package uses this approach, which is very intuitive.
nagman commentedon Feb 3, 2022
I've made a PR with a new
strategyoption in the config, which allows us to opt for mobile-first mode.It replaces the media-queries with a min-width syntax, and sort the screens in descending order (while keeping the lowest screen as the default one)