Admin: paged user list with a dialog; creators manage famous people
- The user list pages (25 per page, with the total from the backend); roles, packages and single units are set in a dialog instead of in the row. - Creators may add, edit and publish famous people and rewrite their portraits (own regenerate route); they delete only their own. The rest of the admin stays closed to them; the header links them to their page. - No free-horoscope offer on the star sign and famous people lists. - .table-wrap is a containing block, so .sr-only text inside it no longer widens the page on phones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -180,7 +180,8 @@ textarea.inp { padding: 12px 14px; line-height: 1.55; min-height: 96px; resize:
|
||||
.combo-list small { color: var(--muted); }
|
||||
|
||||
/* Tables */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
/* relative: absolutely placed children (e.g. .sr-only) stay clipped inside. */
|
||||
.table-wrap { overflow-x: auto; position: relative; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 14px; }
|
||||
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
|
||||
th { color: var(--muted); font-weight: 500; font-size: 13px; }
|
||||
@@ -482,6 +483,36 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
}
|
||||
.admin-nav a:hover { color: var(--ink); }
|
||||
.admin-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
|
||||
|
||||
/* Admin: the user list's pager and the user dialog. */
|
||||
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
|
||||
.admin-users td { vertical-align: middle; }
|
||||
dialog.modal {
|
||||
width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
|
||||
background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px;
|
||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
dialog.modal::backdrop { background: rgba(5, 8, 16, 0.72); backdrop-filter: blur(2px); }
|
||||
.modal-inner { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px 24px; }
|
||||
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
||||
.modal-head h2 { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
|
||||
.modal-sub { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
|
||||
.modal-close {
|
||||
flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
|
||||
background: none; border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer;
|
||||
}
|
||||
.modal-close:hover { color: var(--gold); border-color: var(--gold); }
|
||||
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
|
||||
.modal-section, .modal-section fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
|
||||
.modal-section { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
|
||||
.modal-section fieldset { display: flex; flex-direction: column; gap: 10px; }
|
||||
.modal-section legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 10px; }
|
||||
.modal-hint { font-size: 13px; margin: 0; }
|
||||
.balance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0; }
|
||||
.balance-grid div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
|
||||
.balance-grid dt { font-size: 12px; color: var(--muted); }
|
||||
.balance-grid dd { margin: 0; font-size: 18px; color: var(--ink); }
|
||||
@media (max-width: 480px) { .modal-inner { padding: 18px 16px 20px; } }
|
||||
.prompt-kind { display: flex; flex-direction: column; gap: 20px; }
|
||||
.prompt-kind-head { display: flex; gap: 16px 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
|
||||
.prompt-kind-head > p { flex: 1 1 360px; margin: 0; }
|
||||
|
||||
Reference in New Issue
Block a user