Improved harness - with card selection

This commit is contained in:
2026-09-15 06:08:43 -07:00
parent 97ed7f05c8
commit 786f63a042
29 changed files with 1398 additions and 494 deletions

View File

@@ -100,8 +100,8 @@ h1 {
.toolbar label {
display: grid;
flex: 1 1 110px;
min-width: 100px;
flex: 0 1 124px;
min-width: 104px;
gap: 4px;
color: #9da3ad;
font-size: 11px;
@@ -329,8 +329,56 @@ button:disabled {
cursor: default;
}
.card-control { flex: 1 1 300px !important; min-width: min(300px, 100%); max-width: 440px; }
.card-select-row { display: grid; grid-template-columns: 32px minmax(150px, 1fr) 32px; gap: 5px; }
.card-select-row button { min-width: 0; padding-inline: 7px; }
#card-picker-open { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.card-picker {
position: fixed; inset: 0 0 0 auto; width: min(520px, 94vw); max-width: none;
height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
border-left: 1px solid #363d49; background: #11151d; color: #edf0f5;
box-shadow: -16px 0 50px #0009;
}
.card-picker::backdrop { background: #05070bbb; }
.card-picker[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.card-picker-header {
display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #2b313c;
}
.card-picker-filters {
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
gap: 10px; padding: 16px; border-bottom: 1px solid #2b313c;
}
.card-picker-header { justify-content: space-between; }
.card-picker-header h2 { margin: 2px 0 0; font-size: 20px; }
.card-picker-header .eyebrow { margin: 0; }
.card-picker-close { width: 40px; min-width: 40px; font-size: 24px; }
.card-picker-filters input { grid-column: 1 / -1; min-width: 0; }
.card-picker-filters select { width: min(240px, 65vw); }
.card-picker-filters span { justify-self: end; color: #9fa8b8; font-size: 12px; white-space: nowrap; }
.card-picker-results {
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
gap: 10px; overflow: auto; padding: 14px;
}
.card-picker-result {
display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center;
gap: 10px; min-width: 0; height: auto; padding: 7px; text-align: left;
}
.card-picker-result.selected { border-color: #b69a51; background: #332d20; }
.card-picker-result img { width: 62px; aspect-ratio: 5 / 7; border-radius: 3px; object-fit: cover; background: #080a0e; }
.card-picker-result span { display: grid; gap: 4px; min-width: 0; }
.card-picker-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-picker-result small { color: #a3abba; line-height: 1.35; }
.card-picker-empty { grid-column: 1 / -1; color: #a3abba; text-align: center; }
.diagnostic-readout,
.diagnostic-control { display: none; }
.diagnostics-enabled .diagnostic-readout { display: block; }
.diagnostics-enabled .toolbar .diagnostic-control { display: inline-block; }
#render-diagnostics { color: #89909b; font-size: 10px; }
.toolbar .pack-style,
.pack-mode .toolbar > :not(:first-child):not(.pack-style) {
.pack-mode .toolbar > :not(:first-child):not(.pack-style):not(.variant-control):not(.diagnostics-toggle) {
display: none;
}
@@ -339,6 +387,8 @@ button:disabled {
flex-basis: 200px;
}
.pack-mode .toolbar .variant-control { display: grid; }
.pack-mode .toolbar {
flex: 0 1 400px;
}
@@ -354,7 +404,7 @@ button:disabled {
max-width: min(440px, calc(100% - 32px));
}
@media (max-width: 1120px) {
@media (max-width: 1500px) {
.topbar {
align-items: flex-start;
}
@@ -393,7 +443,13 @@ button:disabled {
}
.toolbar label {
flex-basis: calc(33.333% - 6px);
flex: 1 1 calc(33.333% - 6px);
}
.toolbar .card-control {
flex: 2 1 calc(66.666% - 6px) !important;
max-width: none;
min-width: 0;
}
.toolbar button {
@@ -479,6 +535,10 @@ button:disabled {
padding-inline: 10px;
font-size: 12px;
}
.card-control { grid-column: 1 / -1; }
.card-picker { width: 100vw; }
.card-picker-results { grid-template-columns: 1fr; }
}
@media (max-height: 540px) and (min-aspect-ratio: 4/3) {