diff --git a/public/css/style.css b/public/css/style.css index 59f0e6f..4d6a27a 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1153,3 +1153,19 @@ body:not(.admin-body) > * { font-size: 0.92rem; color: var(--text-muted); } + +/* Abrechnungsläufe scrollbar */ +.runs-scroll-wrap { + max-height: 370px; /* ca. 10 Zeilen */ + overflow-y: auto; + border-radius: 0 0 14px 14px; + border: 1.5px solid var(--border); +} +.runs-scroll-wrap .admin-table { + border: none; +} +.runs-scroll-wrap thead th { + position: sticky; + top: 0; + z-index: 1; +} diff --git a/routes/billing.js b/routes/billing.js index f86e334..778c47e 100644 --- a/routes/billing.js +++ b/routes/billing.js @@ -47,7 +47,7 @@ router.get('/', requireAdmin, async (req, res) => { const period = req.query.period || currentPeriod(); const [runs] = await db.query( - 'SELECT * FROM billing_runs ORDER BY created_at DESC LIMIT 12' + 'SELECT * FROM billing_runs ORDER BY created_at DESC LIMIT 10' ); const [invoices] = await db.query(` diff --git a/views/admin/billing.ejs b/views/admin/billing.ejs index 3a0cdc9..d1f8b09 100644 --- a/views/admin/billing.ejs +++ b/views/admin/billing.ejs @@ -192,6 +192,7 @@ <% if (runs.length > 0) { %>