Skip to content
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

responsive QCarousel #4406

Open
musicformellons opened this issue Jun 18, 2019 · 2 comments
Open

responsive QCarousel #4406

musicformellons opened this issue Jun 18, 2019 · 2 comments

Comments

@musicformellons
Copy link
Contributor

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
Copy link
Collaborator

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

@pdanpdan
Copy link
Collaborator

Cross reference:
#4714
#4406
#7404
#7795
#8266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants