Keep the HUD corners, the dock and a wrapped credit line apart at every width

The credit line now wraps at every width instead of running under the
corner row, and right to left it takes the bottom right at every width. A
small watcher keeps its height in --credit-line-height, so the coordinates
(and, right to left, the Tactical readout) stay above it however many lines
it wraps onto, and the dock and World Timeline rise when it is taller than
their usual clearance. Narrower than 1120px the dock leaves no room between
the bottom corners, so the coordinates and the readout sit above the dock
instead of under it. Outside the Omnibar layout, the coordinate rule meant
for 981 to 1199px no longer overrides the two-row dock's placement at 980px
and below.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju authored and Sameh Khamis committed 2026-11-18 19:45:47 -08:00
1 parent 8ed14efdbf
commit c69a421678
10 files changed
+288 -60

No files matched your search

+25 -23
View File
@@ -501,13 +501,16 @@ body:not(.ui-clean-view):not(.recording-mode):has(
/* The coordinate readout shares the bottom-left corner with the attribution
row below 1200px: it sits clear of the row's 28px logo line, with a 6px gap
(from 1200px, rail-split.css). */
#intel-hud:is([data-variant='tactical'], [data-variant='minimal'])
.hud-bottom-left,
:root[data-scope-mask='off']
#intel-hud[data-variant='minimal']
.hud-bottom-left {
bottom: calc(2vh + 7.125rem + var(--world-timeline-lift, 0px));
(from 1200px, rail-split.css). At 980px and below the dock is two rows
tall and command-dock.css places it. */
@media (min-width: 981px) {
#intel-hud:is([data-variant='tactical'], [data-variant='minimal'])
.hud-bottom-left,
:root[data-scope-mask='off']
#intel-hud[data-variant='minimal']
.hud-bottom-left {
bottom: calc(2vh + 7.125rem + var(--world-timeline-lift, 0px));
}
}
@media (max-width: 1199px) {
@@ -528,15 +531,22 @@ body:not(.ui-clean-view):not(.recording-mode):has(
}
}
@media (min-width: 1200px) {
/* Cesium draws the line in an absolutely placed box inside the empty
#cesium-credits anchor, so the cap and the wrapping go on that box. */
#cesium-credits .cesium-widget-credits {
width: max-content;
max-width: calc(100vw - 1.5rem - 26rem);
white-space: normal;
}
/* Cesium draws the line in an absolutely placed box inside the empty
#cesium-credits anchor, so the cap and the wrapping go on that box, at
every width: a long line wraps rather than running under the corner row.
Right to left it hangs from the anchor's right edge. */
#cesium-credits .cesium-widget-credits {
width: max-content;
max-width: calc(100vw - 1.5rem - 26rem);
white-space: normal;
}
html[dir='rtl'] #cesium-credits .cesium-widget-credits {
right: 0;
left: auto;
}
@media (min-width: 1200px) {
/* Right to left, the corner row sits at the bottom left
(locale-picker.css), so the attribution row takes the bottom right.
Expanded Context places it itself (context-dock.css). */
@@ -554,14 +564,6 @@ body:not(.ui-clean-view):not(.recording-mode):has(
left: auto;
text-align: right;
}
html[dir='rtl']
body:not(.context-docked):not(.ui-clean-view):not(.recording-mode)
#cesium-credits
.cesium-widget-credits {
right: 0;
left: auto;
}
}
@media (max-width: 900px) {
+43 -8
View File
@@ -5,8 +5,13 @@ body:not(.mobile-shell):not(.cockpit-mode):not(.scene-playback-mode):not(
:has(#gev-omnibar):has(#command-dock > #gev-voice-control)
) {
--omnibar-dock-width: clamp(400px, 32vw, 460px);
--omnibar-dock-bottom: 74px;
--omnibar-coordinates-bottom: 4.25rem;
/* Clear of the attribution line under it, however many lines it wraps
onto (--credit-line-height, src/ui/creditLineHeight.js). */
--omnibar-credits-clear: calc(1rem + var(--credit-line-height, 28px) + 6px);
/* The dock, and the World Timeline and narrow corners placed from it,
rise over a line wrapped taller than its usual one or two lines. */
--omnibar-dock-bottom: max(74px, calc(var(--omnibar-credits-clear) + 2px));
--omnibar-coordinates-bottom: max(4.25rem, var(--omnibar-credits-clear));
--world-timeline-lift: 0px;
#intel-hud:is([data-variant='tactical'], [data-variant='minimal'])
@@ -320,24 +325,54 @@ body:not(.mobile-shell):not(.cockpit-mode):not(.scene-playback-mode):not(
display: none;
}
/* Align the plain credits with Power Up. */
/* Align the plain credits with Power Up. The line wraps at every width
rather than running under the corner row (Power Up and the language
picker), whose side it stays clear of. */
:is(#cesium-credits, #gev-credits),
&:has(#intel-hud[data-variant='minimal'].active)
:is(#cesium-credits, #gev-credits) {
bottom: 1rem;
}
#gev-credits {
width: max-content !important;
max-width: calc(100vw - 1.5rem - 26rem);
white-space: normal;
}
/* Right to left the corner row is at the bottom left, so the line takes
the bottom right at every width. Expanded Context places it itself. */
&:where(html[dir='rtl'] *):not(.context-docked) {
:is(#cesium-credits, #gev-credits),
&:has(#intel-hud[data-variant='minimal'].active)
:is(#cesium-credits, #gev-credits) {
right: 1.5rem;
left: auto;
text-align: right;
}
}
/* 8px above the bottom-right corner row (Power Up and the language picker:
32px tall, 14px up), as outside the Omnibar layout. */
#intel-hud[data-variant='tactical'] .hud-bottom-right {
bottom: 3.375rem;
}
/* Right to left the attribution row takes the bottom right: the readout
clears two lines of it (rail-split.css). */
@media (min-width: 1200px) {
&:where(html[dir='rtl'] *)
/* Right to left the attribution line is under the readout, which clears
it however many lines it wraps onto. */
&:where(html[dir='rtl'] *):not(.context-docked)
#intel-hud[data-variant='tactical']
.hud-bottom-right {
bottom: max(3.375rem, var(--omnibar-credits-clear));
}
/* Narrower than the two corners and the dock between them, the corners
rise above the dock. */
@media (max-width: 1119px) {
--omnibar-coordinates-bottom: max(
calc(var(--omnibar-dock-bottom) + 56px + 10px),
var(--omnibar-credits-clear)
);
#intel-hud[data-variant='tactical'] .hud-bottom-right,
&:where(html[dir='rtl'] *):not(.context-docked)
#intel-hud[data-variant='tactical']
.hud-bottom-right {
bottom: calc(3.375rem + 1.5rem);
bottom: var(--omnibar-coordinates-bottom);
}
}
#intel-hud:is([data-variant='tactical'], [data-variant='minimal'])