diff options
| author | William Hergès <william@herges.fr> | 2025-10-03 17:11:31 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-03 17:11:31 +0200 |
| commit | ed216fcfbd19d97f35292ceb9af77aab989446b0 (patch) | |
| tree | 481dbf0288038c707ade589bc2b476227823ddf4 /main.go | |
| parent | 992b005a4000c3c9824af66885f734c9eb5852d8 (diff) | |
fix(frontend): pagination not centered and not responsive
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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") |
