From ed216fcfbd19d97f35292ceb9af77aab989446b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Fri, 3 Oct 2025 17:11:31 +0200 Subject: fix(frontend): pagination not centered and not responsive --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 480a501..3fba254 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,11 @@ func main() { backend.HandleRoot(r, cfg) backend.HandleLogs(r) - backend.HandleStaticFiles(r, "/assets", backend.UsableEmbedFS("dist", embeds)) + if dev { + backend.HandleStaticFiles(r, "/assets", os.DirFS("dist")) + } else { + backend.HandleStaticFiles(r, "/assets", backend.UsableEmbedFS("dist", embeds)) + } backend.HandleStaticFiles(r, "/static", os.DirFS(publicDir)) slog.Info("starting http server") -- cgit v1.2.3