Keep each dashboard group at one card width with no card left alone on a row

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-12 10:35:30 -08:00
1 parent c6265795ea
commit 3fe1de51ed
10 files changed
+181 -3

No files matched your search

+11 -1
View File
@@ -173,7 +173,17 @@
padding-bottom: 8px;
}
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
/* Every card in a group has one width, `--dash-cols` to a row: the dashboard
picks the count (card-rows.js) so no card sits alone on a row, and centers a
last row still short. The 3 is only the first paint's guess. */
.dash-grid {
--dash-cols: 3;
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.dash-grid > .dash-card { flex: 0 0 calc((100% - (var(--dash-cols) - 1) * 12px) / var(--dash-cols)); min-width: 0; }
.dash-grid.is-centered { justify-content: center; }
/* A card IS a button, so it carries the reset the page's other big clickable
surfaces do; the look is the panel look with a lift on hover, and the
+3 -1
View File
@@ -440,7 +440,9 @@ h1 {
.attach-row { display: flex; align-items: center; margin: -4px 0 6px -13px; }
.attach-row.is-under { margin: 6px 0 4px -13px; }
.attach-row .suggest-chip { margin: 0 0 0 auto; }
/* .btn on the chip's rule: pieces.css loads later, and .btn.tiny's bottom
margin would otherwise lift the chip off the row's center line. */
.attach-row .btn.suggest-chip { margin: 0 0 0 auto; }
.attach-row .suggest-nudge { margin-left: auto; }
.attach-row .suggest-nudge + .suggest-chip { margin-left: 9px; }
.msg .suggest-tag {