mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Bring Contacts, Space Missions and Radio back into Context
The Context panel's main tab shows the mode row again, with Contacts (nearby sites search, the TR-3B toggle and the Awareness list) and Space Missions (the roster and launch replay); only the Properties tab hides them. Radio shows while its layer is on, and turning Radio or Launches on opens Context. When Contacts follows the aircraft the card shows, its list sits inside the card in a compact form and the card leaves out the flights and vessels Contacts already lists. The card's Enter Cockpit replaces the Contacts button, and leaving the cockpit returns focus to it. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
6e03871d5a
commit
1ce7e51c22
10 files changed
+109
-43
No files matched your search
@@ -325,20 +325,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Context is one card for whatever is picked: the old Contacts and Space
|
||||
Missions modes and the Radio strip are out of it. Their markup stays, as
|
||||
their controls still find their buttons by id, but none of it shows. */
|
||||
#global-context-panel
|
||||
:is(
|
||||
.global-context-modes,
|
||||
#context-mode-standby,
|
||||
#context-flights-view,
|
||||
#context-missions-view,
|
||||
#radio-panel
|
||||
) {
|
||||
/* Radio can move between Context's two body hosts. Keep its visibility
|
||||
tied to the Inspector and layer state in either location. */
|
||||
#global-context-panel[data-context-tab='props']
|
||||
:is(.global-context-modes, .context-mode-view, #radio-panel),
|
||||
#global-context-panel #radio-panel:not(.radio-enabled),
|
||||
#global-context-panel #context-mode-standby,
|
||||
#global-context-panel #cockpit-entry {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#global-context-panel .global-context-actions:has(#tr3b-toggle:not([hidden])) {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
/* ── In view: what the panel shows while nothing is picked ───────────── */
|
||||
.view-context {
|
||||
margin: 0 0 0.75rem;
|
||||
|
||||
Reference in new issue
Block a user