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 }