Skip to content

Commit 5eb1418

Browse files
committed
Simplified masonry column width
1 parent 9d67a30 commit 5eb1418

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

plugin/frontend/js/shortcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
jQuery( document ).ready( function($) {
33
var grid = $( '#sgdg-gallery' ).masonry({
44
itemSelector: '.sgdg-grid-item',
5-
columnWidth: parseInt( sgdg_shortcode_localize.thumbnail_size, 10 ),
5+
columnWidth: '.sgdg-grid-item',
66
gutter: parseInt( sgdg_shortcode_localize.thumbnail_spacing, 10 ),
77
fitWidth: true
88
});

plugin/frontend/shortcode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function render( $atts = [] ) {
2828

2929
wp_enqueue_script( 'sgdg_gallery_init' );
3030
wp_localize_script( 'sgdg_gallery_init', 'sgdg_shortcode_localize', [
31-
'thumbnail_size' => \Sgdg\Options::$thumbnail_size->get(),
3231
'thumbnail_spacing' => \Sgdg\Options::$thumbnail_spacing->get(),
3332
'preview_speed' => \Sgdg\Options::$preview_speed->get(),
3433
'preview_arrows' => \Sgdg\Options::$preview_arrows->get(),

0 commit comments

Comments
 (0)