Anzeige Rechnungsläufe geändert

This commit is contained in:
cay 2026-03-27 12:58:47 +00:00
parent f2a6cfe0a4
commit 38b355ebf2
3 changed files with 19 additions and 1 deletions

View File

@ -1153,3 +1153,19 @@ body:not(.admin-body) > * {
font-size: 0.92rem; font-size: 0.92rem;
color: var(--text-muted); 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;
}

View File

@ -47,7 +47,7 @@ router.get('/', requireAdmin, async (req, res) => {
const period = req.query.period || currentPeriod(); const period = req.query.period || currentPeriod();
const [runs] = await db.query( 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(` const [invoices] = await db.query(`

View File

@ -192,6 +192,7 @@
<% if (runs.length > 0) { %> <% if (runs.length > 0) { %>
<div class="runs-section"> <div class="runs-section">
<h3>Letzte Abrechnungsläufe</h3> <h3>Letzte Abrechnungsläufe</h3>
<div class="runs-scroll-wrap">
<table class="admin-table"> <table class="admin-table">
<thead> <thead>
<tr> <tr>
@ -225,6 +226,7 @@
<% }) %> <% }) %>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
<% } %> <% } %>