Refactor modular startup and viewer ship debugging
This commit is contained in:
@@ -87,7 +87,7 @@ canvas {
|
||||
.info-panel,
|
||||
.network-panel,
|
||||
.performance-panel,
|
||||
.faction-strip {
|
||||
.ship-strip {
|
||||
backdrop-filter: blur(18px);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--panel-border);
|
||||
@@ -112,7 +112,7 @@ canvas {
|
||||
.topbar h2,
|
||||
.info-panel h2,
|
||||
.info-panel h3,
|
||||
.faction-card h3 {
|
||||
.ship-card h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -214,6 +214,86 @@ canvas {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.history-window {
|
||||
position: absolute;
|
||||
right: auto;
|
||||
bottom: auto;
|
||||
width: min(520px, calc(100vw - 40px));
|
||||
height: min(360px, 56vh);
|
||||
min-width: 320px;
|
||||
min-height: 220px;
|
||||
max-width: calc(100vw - 40px);
|
||||
max-height: calc(100vh - 40px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 24px;
|
||||
overflow: hidden;
|
||||
pointer-events: auto;
|
||||
backdrop-filter: blur(18px);
|
||||
background: rgba(6, 12, 24, 0.9);
|
||||
border: 1px solid rgba(127, 214, 255, 0.2);
|
||||
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
|
||||
resize: both;
|
||||
}
|
||||
|
||||
.history-window[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.history-window-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid rgba(127, 214, 255, 0.12);
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.history-window-title {
|
||||
margin: 0;
|
||||
color: var(--accent);
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.history-window-close,
|
||||
.ship-card-history-button {
|
||||
border: 1px solid rgba(127, 214, 255, 0.22);
|
||||
border-radius: 999px;
|
||||
background: rgba(127, 214, 255, 0.08);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.history-window-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.history-window-close {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.history-window-copy {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.history-window-body {
|
||||
overflow: auto;
|
||||
padding: 16px;
|
||||
color: var(--text);
|
||||
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.6;
|
||||
white-space: pre-wrap;
|
||||
user-select: text;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.error-strip {
|
||||
border-radius: 14px;
|
||||
padding: 12px 14px;
|
||||
@@ -238,35 +318,88 @@ canvas {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.faction-strip {
|
||||
.history-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ship-strip {
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
bottom: 20px;
|
||||
width: min(920px, calc(100vw - 440px));
|
||||
min-height: 110px;
|
||||
min-height: 140px;
|
||||
border-radius: 24px;
|
||||
padding: 16px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 12px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
pointer-events: auto;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.faction-card {
|
||||
.ship-card {
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(127, 214, 255, 0.14);
|
||||
background: linear-gradient(180deg, rgba(11, 23, 43, 0.85), rgba(7, 15, 28, 0.9));
|
||||
padding: 14px;
|
||||
min-width: 220px;
|
||||
max-width: 220px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
|
||||
}
|
||||
|
||||
.faction-card p {
|
||||
.ship-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: rgba(127, 214, 255, 0.38);
|
||||
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
.ship-card.is-selected {
|
||||
border-color: rgba(255, 191, 105, 0.82);
|
||||
background: linear-gradient(180deg, rgba(31, 33, 20, 0.9), rgba(20, 18, 10, 0.92));
|
||||
}
|
||||
|
||||
.ship-card.is-followed {
|
||||
box-shadow: inset 0 0 0 1px rgba(127, 214, 255, 0.34);
|
||||
}
|
||||
|
||||
.ship-card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.ship-card-badge {
|
||||
padding: 4px 8px;
|
||||
border-radius: 999px;
|
||||
background: rgba(127, 214, 255, 0.12);
|
||||
color: var(--accent);
|
||||
font-size: 0.68rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ship-card p {
|
||||
margin: 6px 0 0;
|
||||
color: var(--muted);
|
||||
line-height: 1.45;
|
||||
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
|
||||
font-size: 0.77rem;
|
||||
}
|
||||
|
||||
.ship-card-history-button {
|
||||
margin-top: auto;
|
||||
padding: 8px 12px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.swatch {
|
||||
@@ -277,7 +410,7 @@ canvas {
|
||||
}
|
||||
|
||||
@media (max-width: 1080px) {
|
||||
.faction-strip {
|
||||
.ship-strip {
|
||||
right: 20px;
|
||||
width: auto;
|
||||
}
|
||||
@@ -318,12 +451,19 @@ canvas {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.faction-strip {
|
||||
.ship-strip {
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
width: auto;
|
||||
min-height: 100px;
|
||||
grid-template-columns: 1fr;
|
||||
min-height: 126px;
|
||||
}
|
||||
|
||||
.history-window {
|
||||
left: 20px;
|
||||
right: 20px;
|
||||
width: auto;
|
||||
max-width: calc(100vw - 40px);
|
||||
max-height: calc(100vh - 40px);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user