From 2ca7c55123a5a43c40e46e4bcad956f6587ffddb Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Wed, 1 Jan 2025 04:56:13 +0100 Subject: [PATCH] feat: make previews 2x bigger --- html/html.go | 2 +- thumbnail/thumbnail.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/html.go b/html/html.go index 9f6fa2c..87ef1b9 100644 --- a/html/html.go +++ b/html/html.go @@ -19,7 +19,7 @@ func FileListPage(req string, entries []Entry, big_preview_mode bool) string { if !big_preview_mode { headerCSS1 = "display: flex;" } else { - headerCSS1 = "width: 320px;" + headerCSS1 = "width: 512px;" } headerCSS2 := "" if !big_preview_mode { diff --git a/thumbnail/thumbnail.go b/thumbnail/thumbnail.go index b49ebca..9df72df 100644 --- a/thumbnail/thumbnail.go +++ b/thumbnail/thumbnail.go @@ -70,7 +70,7 @@ var FauxGLFormats = []string{ ".3DS", } -var thumbnailSize = 48 +var thumbnailSize = 48 * 2 var AA = 2 var thumbnailCache = map[string][]byte{}