aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-03 17:11:31 +0200
committerWilliam Hergès <william@herges.fr>2025-10-03 17:11:31 +0200
commited216fcfbd19d97f35292ceb9af77aab989446b0 (patch)
tree481dbf0288038c707ade589bc2b476227823ddf4 /main.go
parent992b005a4000c3c9824af66885f734c9eb5852d8 (diff)
fix(frontend): pagination not centered and not responsive
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
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")