quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.95k stars 3.52k forks source link

responsive QCarousel #4406

Open musicformellons opened 5 years ago

musicformellons commented 5 years ago

As I just started using the responsive features of QImg with srcset and sizes I was wondering if this is something that can be applied to QCarousel images as well? As now I have my images in various sizes on my server, so how do I make QCarousel 'choose' which size to show? I probably have to mimic the reponsive behavior but especially the DPR part is cumbersome/ not easy to implement.

pdanpdan commented 4 years ago

You can use QCarouselSlide and put a QImg inside it (don't use the img-src prop)

pdanpdan commented 3 years ago

Cross reference: https://github.com/quasarframework/quasar/issues/4714 https://github.com/quasarframework/quasar/issues/4406 https://github.com/quasarframework/quasar/issues/7404 https://github.com/quasarframework/quasar/issues/7795 https://github.com/quasarframework/quasar/issues/8266