summaryrefslogtreecommitdiff
path: root/gallery_views
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-18 09:09:07 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-18 09:09:07 +0100
commit031c24308f9a907e67c70084ff6bb1e8894b5351 (patch)
treeb653f91fabd5d57da317da4543382b6a7aca3f0d /gallery_views
parentc35f0a950fd2be2b58c1e2fa31449bad97dc58bd (diff)
downloadfisheye-031c24308f9a907e67c70084ff6bb1e8894b5351.tar.gz
fisheye-031c24308f9a907e67c70084ff6bb1e8894b5351.tar.bz2
fisheye-031c24308f9a907e67c70084ff6bb1e8894b5351.zip
Fix auto_flow row clear logic for variable-height thumbnails
The nested if/else suppressed sm-breakpoint clears after items 4, 8, 12... (multiples of 4 took the lg branch). Replace with three independent checks — one per breakpoint — using Bootstrap 3 visible-*-block so each grid size gets its own clear on its own row boundary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'gallery_views')
-rwxr-xr-xgallery_views/auto_flow/fisheye_auto_flow_inc.tpl9
1 files changed, 3 insertions, 6 deletions
diff --git a/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl b/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl
index 14836d9..a7bc92f 100755
--- a/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl
+++ b/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl
@@ -35,12 +35,9 @@
</div>
</div> <!-- End Image Cell -->
{counter}
- {if $imageCount % 2 == 0}
- {if $imageCount % 4 == 0}<div class="hidden-xs hidden-sm hidden-md clear"></div>
- {else}<div class="hidden-xs hidden-md hidden-lg clear"></div>
- {/if}
- {/if}
- {if $imageCount % 3 == 0}<div class="hidden-xs hidden-sm hidden-lg clear"></div>{/if}
+ {if $imageCount % 2 == 0}<div class="visible-sm-block clear"></div>{/if}
+ {if $imageCount % 3 == 0}<div class="visible-md-block clear"></div>{/if}
+ {if $imageCount % 4 == 0}<div class="visible-lg-block clear"></div>{/if}
{foreachelse}
<div class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$galleryId}">Upload pictures!</a></div>
{/foreach}