From fbc1ba03622f3645478ac35677be63899be4b536 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 27 Nov 2026 20:44:42 +0100 Subject: [PATCH] fix(dashboard): CRA panel first on narrow screens, no id-column indent Found rendering the map against the mockup: on a phone the open requirement sat below all forty chips, the reasons and findings kept the indent of the removed id column, and the requirement chip on a finding stretched across the row. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9 --- compliance-dashboard/assets/main.css | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/compliance-dashboard/assets/main.css b/compliance-dashboard/assets/main.css index e904416..f4d5a38 100644 --- a/compliance-dashboard/assets/main.css +++ b/compliance-dashboard/assets/main.css @@ -4495,7 +4495,8 @@ tbody tr:last-child td { .finding-refs { list-style: none; display: grid; - gap: 4px; + justify-items: start; + gap: 6px; } .finding-refs-catalog { @@ -5768,7 +5769,6 @@ tbody tr:last-child td { } .cra-control-reason { - padding-left: 82px; font-size: 12.5px; color: var(--text-secondary); } @@ -5777,7 +5777,6 @@ tbody tr:last-child td { list-style: none; display: grid; gap: 3px; - padding-left: 82px; font-size: 12.5px; } @@ -8239,6 +8238,15 @@ span.repo-crumb-name { background: var(--bg-card); } +/* Where the map and panel no longer fit side by side, the panel goes first, + so the requirement a tap opens is not below all forty. */ +@media (max-width: 1200px) { + .ct-panel { + order: -1; + max-width: none; + } +} + .ct-panel-empty { color: var(--text-tertiary); font-size: 13.5px; @@ -8329,6 +8337,11 @@ span.repo-crumb-name { display: none; } +.ct-panel-detail .cra-control { + padding-top: 0; + border-top: 0; +} + .ct-panel-links { display: flex; flex-wrap: wrap;