feat(insights): full-width category items with more space
Inside "Alert categories" and "Watch list", the category cards are now a full-width single-column stack instead of a narrow multi-column grid, with more breathing room (larger gap, roomier headers + ticket rows, taller expanded list). Each card was already a click-to-expand accordion and remains so — CSS-only, index.tsx unchanged. The section-level collapse from 2.3.1 still works (.grid[hidden] preserved). - Insights.module.scss: .grid grid -> flex column (gap 16); cardHead padding 16/20; cardTitle 14px; row padding 8/20; list max-height 440 - bump 2.3.1 -> 2.3.2 (root + client), CHANGELOG [2.3.2] - engineer artifact + INDEX; verifier-log PASS entry verifier PASS: reproduced tsc + vite build + npm test 9/9; confirmed flex-column + .grid[hidden] collapse in compiled CSS; no row-grid regression; no new dependency. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VEsaHQx8cXr1hFrKU42UK6
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "forge-client",
|
||||
"private": true,
|
||||
"version": "2.3.1",
|
||||
"version": "2.3.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -54,10 +54,9 @@
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: $s-3;
|
||||
align-items: start;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: $s-4;
|
||||
}
|
||||
.grid[hidden] { display: none; }
|
||||
|
||||
@@ -75,13 +74,13 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: $s-3;
|
||||
padding: 12px 14px;
|
||||
padding: $s-4 $s-5;
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
&:hover { background: var(--surface-alt); }
|
||||
}
|
||||
.cardTitle { font-size: 13px; font-weight: 600; color: var(--text); }
|
||||
.cardTitle { font-size: 14px; font-weight: 600; color: var(--text); }
|
||||
.counts { display: flex; align-items: center; gap: 6px; }
|
||||
.problem {
|
||||
min-width: 22px; text-align: center; font-size: 11px; font-weight: 700;
|
||||
@@ -92,18 +91,18 @@
|
||||
padding: 1px 7px; border-radius: 999px; background: var(--surface-alt); color: var(--text-muted);
|
||||
}
|
||||
|
||||
.list { list-style: none; border-top: 1px solid var(--border); max-height: 340px; overflow-y: auto; }
|
||||
.list { list-style: none; border-top: 1px solid var(--border); max-height: 440px; overflow-y: auto; }
|
||||
.row {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto auto auto;
|
||||
align-items: center;
|
||||
gap: $s-2;
|
||||
padding: 6px 14px;
|
||||
padding: $s-2 $s-5;
|
||||
font-size: 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
&:last-child { border-bottom: none; }
|
||||
}
|
||||
.emptyRow { padding: 10px 14px; color: var(--text-dim); font-size: 12px; }
|
||||
.emptyRow { padding: $s-3 $s-5; color: var(--text-dim); font-size: 12px; }
|
||||
.rowNum { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-weight: 700; color: var(--primary); white-space: nowrap; }
|
||||
.rowDesc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
|
||||
.rowMeta { color: var(--text-muted); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
Reference in New Issue
Block a user