From 031c24308f9a907e67c70084ff6bb1e8894b5351 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Thu, 18 Jun 2026 09:09:07 +0100 Subject: Fix auto_flow row clear logic for variable-height thumbnails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gallery_views/auto_flow/fisheye_auto_flow_inc.tpl | 9 +++------ 1 file 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 @@ {counter} - {if $imageCount % 2 == 0} - {if $imageCount % 4 == 0} - {else} - {/if} - {/if} - {if $imageCount % 3 == 0}{/if} + {if $imageCount % 2 == 0}
{/if} + {if $imageCount % 3 == 0}
{/if} + {if $imageCount % 4 == 0}
{/if} {foreachelse}
{tr}This gallery is empty{/tr}. Upload pictures!
{/foreach} -- cgit v1.3