Dashboard status banner, phone-friendly lists, and more command palette actions
- Dashboard: a banner that answers "is it fine?" (headline, root cause, kinds of problem, worst few); cards with a problem come first in their row - Phone: Alerts, Updates and Inventory rows become compact cards, finger-sized buttons, Alerts drops its figure row; scanned inventory labels get an Edit button - Command palette: acknowledge alerts, update a server, print a label, open hardware, "What depends on ...?" Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
43fc5e0272
commit
b5384c1e03
12 files changed
+429
-118
No files matched your search
@@ -1613,3 +1613,106 @@ tr.alert-row-child > td:first-child {
|
||||
box-shadow: none;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
/* ── The dashboard's status banner and the cards that have a problem. ── */
|
||||
.status-banner {
|
||||
border-left: 5px solid var(--tblr-border-color);
|
||||
}
|
||||
|
||||
.status-banner-green {
|
||||
border-left-color: #2fb344;
|
||||
}
|
||||
|
||||
.status-banner-yellow {
|
||||
border-left-color: #f0a82c;
|
||||
}
|
||||
|
||||
.status-banner-red {
|
||||
border-left-color: #e05252;
|
||||
}
|
||||
|
||||
.status-banner-icon-green {
|
||||
color: #2fb344;
|
||||
}
|
||||
|
||||
.status-banner-icon-yellow {
|
||||
color: #f0a82c;
|
||||
}
|
||||
|
||||
.status-banner-icon-red {
|
||||
color: #e05252;
|
||||
}
|
||||
|
||||
.card.card-problem-bad {
|
||||
border-top: 3px solid #e05252;
|
||||
}
|
||||
|
||||
.card.card-problem-warn {
|
||||
border-top: 3px solid #f0a82c;
|
||||
}
|
||||
|
||||
/* ── On a phone, a table marked table-stack is a compact card per row instead of the labelled list every table gets (see "wide tables become a stack of
|
||||
cards" above): the cells run on along the line, the ones marked stack-wide take a line of their own, and only those marked stack-label keep their heading. ── */
|
||||
@media (max-width: 767.98px) {
|
||||
table.table-stack tbody tr {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.3rem 0.75rem;
|
||||
padding: 0.85rem 1rem;
|
||||
}
|
||||
|
||||
table.table-stack tbody tr > td {
|
||||
display: block;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding: 0 !important;
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
table.table-stack tbody tr > td::before {
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
table.table-stack tbody tr > td.stack-label[data-label]::before {
|
||||
content: attr(data-label) ": " !important;
|
||||
position: static;
|
||||
display: inline;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 400;
|
||||
color: var(--tblr-secondary);
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
table.table-stack tbody tr > td.stack-wide,
|
||||
table.table-stack tbody tr > td[colspan] {
|
||||
flex: 1 0 100%;
|
||||
}
|
||||
|
||||
table.table-stack .btn-list {
|
||||
flex-wrap: wrap !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Finger-sized controls on a phone or any touch screen. */
|
||||
@media (max-width: 767.98px), (pointer: coarse) {
|
||||
.btn.btn-sm:not(.btn-link):not(.btn-icon),
|
||||
.form-select-sm,
|
||||
.form-control-sm {
|
||||
min-height: 2.5rem;
|
||||
}
|
||||
|
||||
.btn.btn-sm:not(.btn-link):not(.btn-icon) {
|
||||
padding-left: 0.9rem;
|
||||
padding-right: 0.9rem;
|
||||
}
|
||||
|
||||
.form-check-input {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user