You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I would like to add horizontal and vertical padding to swiper-wrapper so I can add some background, rounded corners, etc., for my thumbnails. I don't have any problem with setting vertical padding, but when I add horizontal padding, swiper-wrapper doesn't include it in calculation for transform and it causes cutting my last thumb. I tried to wrap all slides in custom element but it seems Swiper ignores it. When swiper thumbs is smaller than viewport width I don't have any problem. What is more, I don't add padding directly to swiper-thumbs because I need this background to fit width of its inners children (when thumbs width is less than viewport width, background should be smaller than viewport width).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I would like to add horizontal and vertical padding to swiper-wrapper so I can add some background, rounded corners, etc., for my thumbnails. I don't have any problem with setting vertical padding, but when I add horizontal padding, swiper-wrapper doesn't include it in calculation for transform and it causes cutting my last thumb. I tried to wrap all slides in custom element but it seems Swiper ignores it. When swiper thumbs is smaller than viewport width I don't have any problem. What is more, I don't add padding directly to swiper-thumbs because I need this background to fit width of its inners children (when thumbs width is less than viewport width, background should be smaller than viewport width).
Beta Was this translation helpful? Give feedback.
All reactions