Skip to content

Commit

Permalink
fix slider per view of image slider block
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-shafi committed Apr 24, 2024
1 parent 9a04504 commit e42d115
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/blocks.build.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/blocks.style.build.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ That's it. You're done!
= 3.1.8 =

* NEW: Block Spacing in button block.
* FIX: Slides per view not working properly in the frontend in image slider block.

= 3.1.7 =

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/image-slider/style.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/blocks/image-slider/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
figure > picture > img {
display: block;
margin: auto;
max-width: 100%;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ function ub_howto_generateStepPicStyle( $stepPic ) {
'min-height: ' . (35 + $attributes['sliderHeight']) . 'px;' . PHP_EOL .
'}' . PHP_EOL;
$blockStylesheets .= $prefix . ' .swiper-slide img{' . PHP_EOL .
'max-height: ' . $attributes['sliderHeight'] . 'px;' . PHP_EOL .
'height: ' . $attributes['sliderHeight'] . 'px;' . PHP_EOL .
'}' . PHP_EOL;
break;
case 'ub/notification-box-block':
Expand Down

0 comments on commit e42d115

Please sign in to comment.