Skip to content
Discussion options

You must be logged in to vote

You can increase the padding around each slide with the following setting:

carousel={{ padding: 64 }}

but that increases padding on all 4 sides, not just on the vertical axis.

You can also override the inline style rendered by the library with !important:

.yarl__slide_image {
  max-height: 86% !important;
}

Please let me know if the above addresses your use case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jimdigrease
Comment options

Answer selected by jimdigrease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants