From 0939a647eaaec2a785593afffab2fe486fa10665 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Fri, 8 May 2026 10:53:20 +0300 Subject: [PATCH] Fix component detail modal: replace dead hx-* with fetch-based JS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HTMX was never loaded on the page, so hx-get on the component label spans was dead code — the dialog opened empty. Replace with a plain openComponentDetail() fetch call. Also fix dialog positioning broken by the CSS reset (*{margin:0} overrode the UA margin:auto that centers ). Replace card hx-trigger polling with a setInterval. Co-Authored-By: Claude Sonnet 4.6 --- audit/internal/webui/layout.go | 1 + audit/internal/webui/pages.go | 29 ++++++++++++++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/audit/internal/webui/layout.go b/audit/internal/webui/layout.go index 73acea3..2aaae80 100644 --- a/audit/internal/webui/layout.go +++ b/audit/internal/webui/layout.go @@ -17,6 +17,7 @@ func layoutHead(title string) string {