feat: make previews 2x bigger
This commit is contained in:
parent
2ca7c55123
commit
0d11b65481
@ -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{}
|
||||||
|
Loading…
Reference in New Issue
Block a user