Admin: Werkzeugleisten einheitlich hoch und ausgerichtet, Rechnungs-Kopfzeile aufgeräumt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvuGvHpbAQ4syfuLuRvutL
This commit is contained in:
Claude 2026-10-20 16:36:42 +00:00 committed by Maaxxs
parent b0bbe44d42
commit ce4820cab0
2 changed files with 15 additions and 5 deletions

View file

@ -33,13 +33,15 @@ export default async function InvoicesPage({ searchParams }: { searchParams: Pro
</PageHead> </PageHead>
<Card flush> <Card flush>
<div className="ad-toolbar"> <div className="ad-toolbar">
<form method="get" action="/admin/rechnungen/export" style={{ display: "flex", gap: 8, alignItems: "center" }}> <form method="get" action="/admin/rechnungen/export" className="ad-toolbar__group">
<span className="sm-select-wrap">
<select className="sm-select" name="monat" aria-label="Monat für den Export" defaultValue={months[0].value}> <select className="sm-select" name="monat" aria-label="Monat für den Export" defaultValue={months[0].value}>
{months.map((m) => <option key={m.value} value={m.value}>{m.label}</option>)} {months.map((m) => <option key={m.value} value={m.value}>{m.label}</option>)}
</select> </select>
</span>
<button className="sm-btn sm-btn--secondary sm-btn--sm" type="submit">Als CSV für die Buchhaltung</button> <button className="sm-btn sm-btn--secondary sm-btn--sm" type="submit">Als CSV für die Buchhaltung</button>
</form> </form>
<form method="get" style={{ marginLeft: "auto", display: "flex", gap: 8 }}> <form method="get" className="ad-toolbar__search" role="search">
<input className="sm-input" type="search" name="q" defaultValue={q} placeholder="Rechnung, Bestellung oder E-Mail" aria-label="Rechnungen durchsuchen" /> <input className="sm-input" type="search" name="q" defaultValue={q} placeholder="Rechnung, Bestellung oder E-Mail" aria-label="Rechnungen durchsuchen" />
</form> </form>
</div> </div>

View file

@ -90,6 +90,14 @@ a.ad-kpi:hover { border-color: var(--line-strong); }
/* Werkzeugleiste */ /* Werkzeugleiste */
.ad-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: var(--hairline) solid var(--line); } .ad-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: var(--hairline) solid var(--line); }
.ad-toolbar .sm-input { min-height: var(--control-height-sm); max-width: 320px; } .ad-toolbar .sm-input { min-height: var(--control-height-sm); max-width: 320px; }
/* Alles in der Leiste gleich hoch und auf einer Linie; Knöpfe werden nie gestaucht */
.ad-toolbar .sm-input, .ad-toolbar .sm-select { height: var(--control-height-sm); font-size: 15px; line-height: 22px; }
.ad-toolbar .sm-select { width: auto; min-height: var(--control-height-sm); }
.ad-toolbar .sm-btn { flex: none; min-height: var(--control-height-sm); height: var(--control-height-sm); }
.ad-toolbar__group { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.ad-toolbar__search { margin-left: auto; flex: 0 1 320px; }
.ad-toolbar__search .sm-input { max-width: none; }
@media (max-width: 640px) { .ad-toolbar__search { margin-left: 0; flex: 1 1 100%; } }
.ad-tabs { display: flex; gap: var(--space-1); flex-wrap: wrap; } .ad-tabs { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.ad-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink); text-decoration: none; border: var(--hairline) solid transparent; } .ad-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink); text-decoration: none; border: var(--hairline) solid transparent; }
.ad-tab:hover { background: var(--surface-sunken); } .ad-tab:hover { background: var(--surface-sunken); }