Toasts, logo icons, shared table toolbar with search, and a density toggle

Feedback: toasts confirm common actions, and a page's error or success message
that appears out of view is also shown as a toast. Icons: the tab, app and
home-screen icons are the house from the logo; a dev instance gets a coloured dot
on its tab icon. Tables: Secrets, Admin Links, IP Addresses and Alerts share one
toolbar (search, filters, row count, actions, Export CSV); twelve more tables get
a multi-word search box; long tables keep their column headings in view on wide
screens. Density: Compact / Normal / Roomy in the user menu, remembered per
browser.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-14 23:39:19 +02:00
1 parent 7d56ad18b7
commit 617dc1ea2f
56 files changed
+757 -158

No files matched your search

+132
View File
@@ -150,3 +150,135 @@ html[data-env] .navbar-vertical {
padding-top: 0.3rem;
padding-bottom: 0.3rem;
}
/* Toasts: short results that appear in the corner and fade away (utils/toast). */
.toast-stack {
position: fixed;
right: 1rem;
bottom: 1rem;
z-index: 2000;
display: flex;
flex-direction: column;
gap: 0.5rem;
width: min(24rem, calc(100vw - 2rem));
}
.toast-item {
display: flex;
gap: 0.6rem;
padding: 0.7rem 0.8rem;
color: #fff;
background: #1f2937;
border-left: 4px solid #6b7280;
border-radius: var(--tblr-border-radius, 4px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
animation: toast-in 0.18s ease-out;
}
.toast-success {
border-left-color: #22c55e;
}
.toast-error {
border-left-color: #ef4444;
}
.toast-info {
border-left-color: #3b82f6;
}
.toast-close {
flex-shrink: 0;
align-self: flex-start;
padding: 0.1rem;
color: inherit;
opacity: 0.7;
background: none;
border: 0;
}
.toast-close:hover {
opacity: 1;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(0.5rem);
}
}
@media (prefers-reduced-motion: reduce) {
.toast-item {
animation: none;
}
}
/* ── Table toolbar: search and filters on the left, row count, then the table's actions and Export CSV on the right. ── */
.table-toolbar-inner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
width: 100%;
}
.table-toolbar-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-left: auto;
}
.table-search {
width: 16rem;
max-width: 100%;
}
/* ── Long tables scroll inside their card with the column headings kept in view (wide screens only: on a phone the page scrolls). ── */
@media (min-width: 992px) {
.card > .table-responsive {
max-height: calc(100vh - 12rem);
overflow: auto;
}
.card > .table-responsive > .table > thead > tr > th {
position: sticky;
top: 0;
z-index: 2;
background-color: var(--tblr-bg-surface-secondary, var(--tblr-card-bg));
box-shadow: inset 0 -1px 0 var(--tblr-border-color);
}
}
/* ── Density: how tightly pages are packed. Normal is Tabler's own look; the choice is in the user menu. ── */
html[data-density="compact"] {
--tblr-body-font-size: 0.8125rem;
--tblr-card-spacer-y: 0.85rem;
--tblr-card-spacer-x: 1rem;
}
html[data-density="compact"] .table > :not(caption) > * > * {
padding: 0.35rem 0.6rem;
}
html[data-density="compact"] .page-body {
margin-top: 0.75rem;
}
html[data-density="roomy"] {
--tblr-body-font-size: 0.975rem;
--tblr-card-spacer-y: 1.5rem;
--tblr-card-spacer-x: 1.5rem;
}
html[data-density="roomy"] .table > :not(caption) > * > * {
padding: 1rem 0.9rem;
}
.user-menu-density {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 0.4rem 0.5rem;
}