mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Merge branch 'sameh/world-clock' into sameh/world-timeline-launches
This commit is contained in:
commit
bc61a39738
375 files changed
+23158
-661
No files matched your search
@@ -603,6 +603,16 @@ test('the phone shell keeps the required attribution visible', () => {
|
||||
idleCredit,
|
||||
/display:\s*none|visibility:\s*hidden|opacity:\s*0/,
|
||||
);
|
||||
// A long credit line (map plus outline credits) wraps inside the screen:
|
||||
// it wraps, and the box gets a real width, set before the 0.8 scale, so it
|
||||
// is divided by it.
|
||||
assert.match(idleCredit, /white-space: normal;/);
|
||||
assert.match(
|
||||
idleCredit,
|
||||
/[^-]width: calc\(\(100vw - 20px\) \/ 0\.8\) !important;/,
|
||||
);
|
||||
assert.match(idleCredit, /max-width: none !important;/);
|
||||
assert.match(idleCredit, /scale: 0\.8;/);
|
||||
// Open sheet: above everything the sheet covers, drawn above the sheets.
|
||||
const sheetCredit = rule(
|
||||
'body.mobile-shell[data-mobile-sheet]:not(.recording-mode):not(.cockpit-mode):not(.ui-clean-view) #cesium-credits',
|
||||
|
||||
@@ -389,6 +389,10 @@ body:not(.ui-clean-view):not(.recording-mode) #cesium-credits {
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
#command-dock #location-bar .location-toolbar-label {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#command-dock {
|
||||
--dock-popover-mobile-width: calc(100vw - 1.5rem);
|
||||
}
|
||||
|
||||
@@ -382,7 +382,15 @@ body.mobile-shell:not(.recording-mode):not(.cockpit-mode):not(.ui-clean-view)
|
||||
right: auto;
|
||||
bottom: calc(var(--mobile-tab-space) + 106px + var(--world-timeline-lift, 0px)) !important;
|
||||
left: 10px;
|
||||
max-width: calc(100vw - 20px);
|
||||
/* With the base rule's nowrap the credits run off the right edge, and a
|
||||
max-width alone wrapped them into a narrow column: the line needs wrapping
|
||||
and a real width. The width applies before the 0.8 scale, keeping the
|
||||
scaled line 10px from the right edge, so every credit and "Data
|
||||
attribution" stay on screen. Like the offset above, it must beat the
|
||||
dock's width: auto !important. */
|
||||
width: calc((100vw - 20px) / 0.8) !important;
|
||||
max-width: none !important;
|
||||
white-space: normal;
|
||||
transform-origin: left bottom;
|
||||
scale: 0.8;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user