Resource Manager: Materialien-Tab mit PBR-Kugel-Vorschau, Suche und Kategorie-Chips
Geteilter Offscreen-three.js-Renderer (ein Kontext, serielle Queue, Cache per Map-Signatur) rendert 128px-Kugeln lazy via IntersectionObserver. Kategorie-Chips aus der Bibliothek abgeleitet, uneinheitliche Manifest- Schreibweisen normalisiert; Suche und Kategorie kombinierbar. Kachel-Klick markiert aktiv (gleiche Sprache wie MaterialPicker). Puppeteer-Probe scripts/probe-material-tiles.mjs prüft Grid, Lazy-Render und Filter.
This commit is contained in:
@@ -3888,6 +3888,80 @@ body {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ── Materialien-Tab: Bibliothek durchsuchen (Kugel-Vorschau, Filter) ────── */
|
||||
.mat-lib-filterbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 10px;
|
||||
align-items: center;
|
||||
}
|
||||
.mat-lib-filterbar .mat-search {
|
||||
flex: 1 1 200px;
|
||||
min-width: 160px;
|
||||
}
|
||||
.mat-lib-chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
.mat-chip {
|
||||
padding: 4px 11px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: var(--panel-2);
|
||||
color: var(--ink-2);
|
||||
font-size: 11.5px;
|
||||
cursor: pointer;
|
||||
transition: background 0.12s, color 0.12s, border-color 0.12s;
|
||||
}
|
||||
.mat-chip:hover {
|
||||
border-color: var(--accent-border);
|
||||
color: var(--ink);
|
||||
}
|
||||
.mat-chip.active {
|
||||
background: var(--active-dim);
|
||||
border-color: var(--active);
|
||||
color: var(--ink);
|
||||
}
|
||||
.mat-lib-selected {
|
||||
font-size: 12px;
|
||||
color: var(--ink-2);
|
||||
}
|
||||
.mat-lib-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.mat-sphere {
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
border-radius: 999px;
|
||||
background: var(--input);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
.mat-sphere img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.mat-tile-badge {
|
||||
align-self: center;
|
||||
font-size: 9.5px;
|
||||
letter-spacing: 0.02em;
|
||||
color: var(--muted);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
padding: 1px 7px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Standort-Import-Dialog (ContextImportDialog) — nutzt das imp-*-Modal-Gerüst,
|
||||
ergänzt nur die inneren Suchfelder/Checkboxen (cim-*-Namespace). */
|
||||
.cim-search-row {
|
||||
|
||||
Reference in New Issue
Block a user