From 0d11b654810e52651fb514344a7b4b310b0562e6 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Wed, 1 Jan 2025 05:00:54 +0100 Subject: [PATCH] feat: make previews 2x bigger --- html/html.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/html.go b/html/html.go index 87ef1b9..1effe35 100644 --- a/html/html.go +++ b/html/html.go @@ -30,7 +30,7 @@ func FileListPage(req string, entries []Entry, big_preview_mode bool) string { linkSuffixToggle := "" linkSuffix := "" if big_preview_mode { - linkSuffixToggle = "" + linkSuffixToggle = "?big_preview=false" linkSuffix = "?big_preview=true" } else { linkSuffixToggle = "?big_preview=true" @@ -128,7 +128,7 @@ func FileListPage(req string, entries []Entry, big_preview_mode bool) string {
`, headerCSS1, headerCSS2, req, req) - footer := fmt.Sprintf(`

`, linkSuffixToggle) + footer := fmt.Sprintf(`
`, linkSuffixToggle) body := "" entriesWithParent := []Entry{}