feat: make previews 2x bigger

This commit is contained in:
Louis Dalibard 2025-01-01 05:00:54 +01:00
parent 2ca7c55123
commit 0d11b65481

View File

@ -30,7 +30,7 @@ func FileListPage(req string, entries []Entry, big_preview_mode bool) string {
linkSuffixToggle := "" linkSuffixToggle := ""
linkSuffix := "" linkSuffix := ""
if big_preview_mode { if big_preview_mode {
linkSuffixToggle = "" linkSuffixToggle = "?big_preview=false"
linkSuffix = "?big_preview=true" linkSuffix = "?big_preview=true"
} else { } else {
linkSuffixToggle = "?big_preview=true" linkSuffixToggle = "?big_preview=true"
@ -128,7 +128,7 @@ func FileListPage(req string, entries []Entry, big_preview_mode bool) string {
<body> <body>
<div id="content"><img src="/assets/images/leech.png" id="leech"></img>`, headerCSS1, headerCSS2, req, req) <div id="content"><img src="/assets/images/leech.png" id="leech"></img>`, headerCSS1, headerCSS2, req, req)
footer := fmt.Sprintf(`</div><br><div id="footer"><a id="toggle-big-preview-link" href="./%s">Toggle big preview mode.</a><br><br>powered by leech. ontake. 2024.</div></body></html>`, linkSuffixToggle) footer := fmt.Sprintf(`</div><br><div id="footer"><a id="toggle-big-preview-link" href="%s">Toggle big preview mode.</a><br><br>powered by leech. ontake. 2024.</div></body></html>`, linkSuffixToggle)
body := "" body := ""
entriesWithParent := []Entry{} entriesWithParent := []Entry{}