Skip to content
Discussion options

You must be logged in to vote

Ah got it. I reproduced your exact setup and checked the measurements, and the good news is your slides already have min-width: 0 so the carousel itself is perfectly fine. Your global src/style.css is also minimal and not the cause. The real issue is the .box wrapper in your App.vue. Because it uses display: grid with grid-template-rows: auto 1fr auto but no explicit columns, the implicit grid column defaults to minmax(auto, 1fr). This forces the <main> grid item to use min-width: auto, so it refuses to shrink below the carousel track's total content width. When I tested it on a 500px viewport, <main> stayed stuck around 1620px wide and pushed the whole page to about 1640px. Deleting the …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Desalutar20
Comment options

@harshagarwalnyu
Comment options

@Desalutar20
Comment options

@harshagarwalnyu
Comment options

Answer selected by Desalutar20
@Desalutar20
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something vue Issue is related to Vue
2 participants