From 6f7f59c6dfa1c94ecfaf14ec81d895d616fddc19 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 14 Dec 2021 11:40:12 +0100 Subject: [PATCH] Fix homepage reflow while images are loading Apparently setting the image sizes in CSS wasn't enough, it was still reflowing in Firefox. --- www/index.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/index.pl b/www/index.pl index c6143da..4bb6754 100755 --- a/www/index.pl +++ b/www/index.pl @@ -304,12 +304,12 @@ TUWF::get '/' => sub { my $img = $sys->[0]{short} =~ s/^(.+)-.+$/$1/r; if(@$sys == 1) { a_ href => "/pkg/$sys->[0]{short}", sub { - img_ src => "images/$img.png"; + img_ width => 50, height => 50, src => "images/$img.png"; b_ $sys->[0]{name}; }; return; } - img_ src => "images/$img.png"; + img_ width => 50, height => 50, src => "images/$img.png"; div_ sub { b_ $sys->[0]{name}; for(reverse @$sys) {