From b0f1fa5fdac134ea6a9c634a6f9b208572a433cc Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Mon, 10 Jun 2024 22:13:43 +0200 Subject: [PATCH] fix: prevent entry names from moving --- html/html.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/html.go b/html/html.go index 3cb6972..6c8377b 100644 --- a/html/html.go +++ b/html/html.go @@ -71,6 +71,10 @@ func FileListPage(req string, entries []Entry) string { margin-left: 16px; margin-right: auto; } + .entry-icon{ + width: 48px; + height: 48px; + } #leech { image-rendering: pixelated; transform-origin: center center; @@ -129,7 +133,7 @@ func FileListPage(req string, entries []Entry) string { if dirEntry.IsDir { icon = "/assets/images/diricon.png" } - body += fmt.Sprintf(`
%s
%s
`, link, icon, dirEntry.Name, formattedSize) + body += fmt.Sprintf(`
%s
%s
`, link, icon, dirEntry.Name, formattedSize) } return header + body + footer }