From 35a9c79833c56e8be6f39c4b7955763e80b8e236 Mon Sep 17 00:00:00 2001 From: mscherer Date: Sun, 26 Apr 2026 03:08:50 +0200 Subject: [PATCH 1/2] Move mobile-nav background to CSS class (strict-CSP) Drops the inline `style="background: linear-gradient(...)"` attribute on the mobile offcanvas in favour of a `.queue-mobile-nav-bg` class that reuses the existing `--queue-sidebar-bg` custom property. Removes the `style-src 'unsafe-inline'` requirement for this element. --- templates/layout/queue.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/layout/queue.php b/templates/layout/queue.php index 053835e7..4ef4da13 100644 --- a/templates/layout/queue.php +++ b/templates/layout/queue.php @@ -82,6 +82,11 @@ overflow-y: auto; } + /* Mobile nav offcanvas — same background as sidebar */ + .queue-mobile-nav-bg { + background: var(--queue-sidebar-bg); + } + .queue-sidebar .nav-section { padding: 0 1rem; margin-bottom: 1.5rem; @@ -382,7 +387,7 @@ -
+
Queue Admin From e0ee6ab87babba6e6d48537daa29c1a0af295fa0 Mon Sep 17 00:00:00 2001 From: mscherer Date: Sun, 26 Apr 2026 13:01:13 +0200 Subject: [PATCH 2/2] Drop leftover inline styles (widths, chart wrapper, heatmap colors) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Continues the strict-CSP cleanup on top of #479's gradient fix. - Static `` widths in QueuedJobs/{view,migrate}.php and QueueProcesses/view.php → `.queue-col-w-50` / `.queue-col-w-200` classes in the layout. - `
` chart wrapper in QueuedJobs/stats.php → `.queue-chart-wrapper` class. - Dynamic heatmap cell + legend colors in QueuedJobs/heatmap.php (`style="background-color:...;color:...;"`) → `data-bg-color` / `data-text-color` attributes; the layout's existing nonced `