lukaszflorczak / vue-agile

🎠 A carousel component for Vue.js
https://lukaszflorczak.github.io/vue-agile/
MIT License
1.49k stars 168 forks source link

Not possible to place agile in a flex #169

Open philippeluickx opened 4 years ago

philippeluickx commented 4 years ago

Describe the bug I would like to put the carousel in a

with display: flex; The reason is that I want to vertically center the carousel on my screen

Code https://codepen.io/lukaszflorczak/pen/EJRNMM Just change the CSS of the app block to be display: flex;

To Reproduce Once the parent div is display: flex, then the carousel takes the whole width

Expected behavior Carousel works as with display: block parent div

Screenshots image

Environment:

  • OS: Windows
  • Browser Chrome
lukaszflorczak commented 4 years ago
Zrzut ekranu 2020-05-30 o 14 04 13

It looks that width: 100% for .agile class fix the problem.

create-issue-branch[bot] commented 4 years ago

Branch issue-169 created!

philippeluickx commented 4 years ago

You might need to add flex direction to make the dots show up below the slides.

.agile {
  width: 100%;
  flex-direction: column;
}