Show the renderer's credits in the application's own line

- On a renderer whose plugin does not show its credits in a display of
  its own (the ownCreditDisplay hook; Cesium's does), the application
  shows what the credits port lists at the bottom left (#gev-credits):
  inline credits on the line, the rest, the layers' data credits among
  them, in the Data attribution list it opens. The button and list are
  keyboard operable; Escape closes the list and returns focus. Text is set
  as text; links and logos keep only safe schemes.
- The panel, Cockpit and overlay layouts keep clear of it as of Cesium's.
- The stub boot check fails when the credits line is not shown or its list
  is empty; it keeps its report when the run stops early, counts only the
  dev server's providers and other origins as feeds, and a failed default
  renderer load is retried without dropping a newer one.
This commit is contained in:
Sameh Khamis committed 2026-11-10 18:29:47 -08:00
1 parent 691cb0cd79
commit 16c7034c28
15 files changed
+411 -18

No files matched your search

+91
View File
@@ -332,6 +332,97 @@ body.cockpit-mode #cockpit-cloud-effects.active {
color: rgba(232, 234, 237, 0.7);
}
/* The application's own attribution line (src/ui/creditsView.js), for a
renderer without a credit display of its own: the same place and look. */
#gev-credits {
position: fixed;
bottom: 36px;
left: 36px;
z-index: 90;
max-width: 90vw;
white-space: nowrap;
pointer-events: auto;
font-family: var(--font-mono);
font-size: 10px;
color: rgba(232, 234, 237, 0.55);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
#gev-credits a,
#gev-credits .gev-credits-expand {
color: rgba(232, 234, 237, 0.7);
}
#gev-credits .gev-credit-logo {
height: 14px;
vertical-align: middle;
}
#gev-credits .gev-credits-expand {
padding: 0;
border: 0;
background: none;
font: inherit;
text-decoration: underline;
cursor: pointer;
}
.gev-credits-panel {
position: fixed;
bottom: 60px;
left: 36px;
z-index: 200;
display: flex;
flex-direction: column;
width: 470px;
max-width: calc(100vw - 2rem);
max-height: min(70dvh, 36rem);
overflow: hidden;
border: 1px solid rgba(232, 234, 237, 0.2);
border-radius: 6px;
background: rgba(16, 18, 22, 0.94);
color: rgba(232, 234, 237, 0.85);
font-family: var(--font-mono);
font-size: 12px;
}
.gev-credits-panel[hidden] {
display: none;
}
.gev-credits-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px 4px 20px;
}
.gev-credits-close {
border: 0;
background: none;
color: inherit;
font-size: 18px;
cursor: pointer;
}
.gev-credits-list {
flex: 1;
min-height: 0;
margin: 0;
padding: 4px 20px 14px 40px;
overflow-y: auto;
overscroll-behavior: contain;
line-height: 1.35;
}
.gev-credits-list > li {
padding-bottom: 5px;
overflow-wrap: anywhere;
}
.gev-credits-list a {
color: rgba(232, 234, 237, 0.85);
}
@media (max-width: 575px) {
.gev-credits-panel {
inset: 0;
width: 100%;
max-width: none;
max-height: 100dvh;
border-radius: 0;
}
}
/* Cesium's stock attribution lightbox grows with every registered data source.
Keep the title and close affordance fixed while the complete, unabridged
credit list wraps and scrolls inside a compact panel. */