From 03c164e33938e7c511a25073ccdd0351de408d91 Mon Sep 17 00:00:00 2001 From: Razvan Dimescu Date: Mon, 23 Mar 2026 12:29:18 +0200 Subject: [PATCH] dynamic banner width, hoist HTML escaper, cache CA, restore log path - banner box width adapts to longest value (fixes overflow with long paths) - hoist h() HTML escape function to script top, remove 3 local copies - serve_ca: add Cache-Control: public, max-age=86400 - restore log path in dashboard footer alongside new config/data fields Co-Authored-By: Claude Opus 4.6 --- site/dashboard.html | 15 +++-- src/api.rs | 1 + src/main.rs | 132 +++++++++++++++++++++++++++++++++----------- 3 files changed, 108 insertions(+), 40 deletions(-) diff --git a/site/dashboard.html b/site/dashboard.html index ef07202..348960c 100644 --- a/site/dashboard.html +++ b/site/dashboard.html @@ -661,6 +661,7 @@ body {