From: Mark Wooding Date: Fri, 24 Dec 2021 17:50:56 +0000 (+0000) Subject: Introduce multiple thumbnail strips, and select one in a sensible way. X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/commitdiff_plain/1408b7a293e5a35d99744aaa51192eab972a95a1 Introduce multiple thumbnail strips, and select one in a sensible way. Significantly, there are now multiple thumbnail strips and `focus' thumbnails, so we need to be more intelligent about scrolling them. --- diff --git a/mason/.perl-lib/TrivGal.pm b/mason/.perl-lib/TrivGal.pm index 838de97..5b5cbfa 100644 --- a/mason/.perl-lib/TrivGal.pm +++ b/mason/.perl-lib/TrivGal.pm @@ -138,7 +138,10 @@ our $STATICURL //= "$ROOTURL/tgal-static"; our $SCRIPTURL; export qw{%SIZE}; -our %SIZE = (bigthumb => 228, view => 1200); +our %SIZE = (smallthumb => 96, + medthumb => 144, + bigthumb => 228, + view => 1200); export qw{init}; my $initp = 0; diff --git a/mason/dhandler b/mason/dhandler index 011c561..813e637 100755 --- a/mason/dhandler +++ b/mason/dhandler @@ -107,7 +107,7 @@ Failed to find ‘<% $path |h %>’. % % if (@$dd) {

Subfolders

-% for my $size (qw{bigthumb}) { +% for my $size (qw{medthumb}) {