Product list with cart - Vue 3 Composition API & TypeScript

Solution retrospective
I'm happy I learned about Vue 3 Composition API (better later than never).
What challenges did you encounter, and how did you overcome them?I had a bit of trouble with the modal, it had an edge case where if you added all the products into the modal cart, the modal content would be bigger than the modal overlay. I managed to solve it using position fixed on the overlay instead of absolute. I don't know how or why it worked but it seemed to do the job.
My product images are not the right size, I set them using the <picture> tag not with <img> directly.
I found a stackoverflow answer (here's the link) that might help me but I don't fully understand it. If there's someone more knowledgeable than me on this topic, feel free to leave a comment here, I could use some advice.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Florian Stăncioiu's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord