From f269f5be4f8d53fdde9ba318d15f6a10a25fa62a Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sun, 1 Nov 2026 13:13:55 -0800 Subject: [PATCH] refactor(cockpit): share one header frame between the Cockpit cards The Contact and briefing cards' headers repeated the same frame: the title grid over a hairline, the accent kicker and the square action buttons. It lives in cockpit-card-header, cockpit-card-kicker and cockpit-card-actions now, beside each card's own classes, which keep only their spacing and sizes; the cyber theme targets the shared classes. The computed styles of every header element are unchanged in the default and cyber themes, expanded and collapsed. --- src/cockpitMarkup.test.mjs | 2 +- src/ui/styles/cockpit.css | 82 ++++++++++--------------- src/ui/styles/cyber.css | 6 +- src/ui/views/panels/CockpitBriefing.vue | 6 +- src/ui/views/panels/CockpitContext.vue | 6 +- 5 files changed, 42 insertions(+), 60 deletions(-) diff --git a/src/cockpitMarkup.test.mjs b/src/cockpitMarkup.test.mjs index c6623549b..a404ab381 100644 --- a/src/cockpitMarkup.test.mjs +++ b/src/cockpitMarkup.test.mjs @@ -1188,7 +1188,7 @@ test('cockpit summary presents the focused item as Contact', () => { const match = html.match(/