Table gains an optional emptyMessage prop, rendered as a single full-width row in place of a bare empty tbody; AgentsPage is the first consumer. Screenshot-verified against a mock server returning an empty roster.
28 lines
620 B
CSS
28 lines
620 B
CSS
/* Scrolls horizontally within its own box on a narrow viewport instead
|
|
of forcing the whole page to overflow — see Table.tsx's comment. */
|
|
.ui-table-scroll {
|
|
overflow-x: auto;
|
|
}
|
|
.ui-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.ui-table th {
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
padding: 0.5em 0.75em;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.ui-table td {
|
|
padding: 0.5em 0.75em;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.ui-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
.ui-table-empty {
|
|
color: var(--muted);
|
|
text-align: center;
|
|
padding: 1.25em 0.75em;
|
|
}
|