Improve admin table actions and pagination

This commit is contained in:
Codex
2026-07-08 07:37:19 +00:00
parent 5ae4ebb55e
commit 132e2648ac
2 changed files with 127 additions and 22 deletions
+17 -4
View File
@@ -24,7 +24,7 @@
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; }
button, input { font: inherit; }
button, input, select { font: inherit; }
.shell { max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; }
.header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }
h1, h2, p { margin: 0; }
@@ -35,7 +35,8 @@ h2 { font-size: 18px; }
.row, .capture-form, .table-head, .actions, .pager { display: flex; gap: 10px; align-items: end; }
.capture-form { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(160px, 260px) auto; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input { width: 100%; min-height: 40px; border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; background: var(--panel); color: var(--text); }
input, select { min-height: 40px; border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; background: var(--panel); color: var(--text); }
input { width: 100%; }
button, .small.link { min-height: 38px; border: 1px solid var(--border); border-radius: 7px; padding: 8px 12px; background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
button[type="submit"] { background: var(--accent); border-color: var(--accent); color: white; }
.danger { color: var(--danger); }
@@ -53,11 +54,23 @@ tr:last-child td { border-bottom: 0; }
.pill.failed { color: var(--danger); }
.pill.queued, .pill.capturing, .pill.rendering { color: #b7791f; }
.small { min-height: 32px; padding: 6px 9px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pager { justify-content: flex-end; margin-top: 12px; color: var(--muted); }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; white-space: nowrap; }
.row-actions .small { min-width: 58px; min-height: 32px; padding: 6px 9px; }
.row-actions .danger { min-width: 66px; }
.pager { justify-content: flex-end; align-items: center; margin-top: 12px; color: var(--muted); }
.pager-button { width: 38px; min-height: 36px; padding: 6px 10px; }
.page-label { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; font-variant-numeric: tabular-nums; color: var(--text); }
.pager select { width: auto; min-height: 36px; padding: 6px 30px 6px 10px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translate(-50%, 12px); padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--text); color: var(--bg); box-shadow: 0 10px 28px rgb(0 0 0 / 18%); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.toast[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
.shell { padding: 20px 14px 36px; }
.header, .table-head, .actions, .pager { align-items: stretch; flex-direction: column; }
.header, .table-head, .actions { align-items: stretch; flex-direction: column; }
.capture-form { grid-template-columns: 1fr; }
button { width: 100%; }
.row-actions { justify-content: flex-start; flex-wrap: wrap; }
.row-actions .small, .pager button, .pager select { width: auto; }
.pager { flex-direction: row; justify-content: flex-end; align-items: center; }
.toast { width: max-content; max-width: calc(100vw - 28px); text-align: center; }
}