From 1408b7a293e5a35d99744aaa51192eab972a95a1 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 24 Dec 2021 17:50:56 +0000 Subject: [PATCH] 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. --- mason/.perl-lib/TrivGal.pm | 5 ++++- mason/dhandler | 8 ++++---- static/tgal.css | 23 +++++++++++++++++++++-- static/tgal.js | 36 ++++++++++++++++++++++++++++-------- 4 files changed, 57 insertions(+), 15 deletions(-) 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}) {