From 24dc89d5fb251c5ee5481daf65ab4cd72e5b2d30 Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Sun, 1 Nov 2026 19:40:32 +0100 Subject: [PATCH] Wasser & Heizung: align labels and inputs in the dialog Fields sit in a two-column grid with a fixed label width, so labels and inputs line up across all sections. Co-Authored-By: Claude Opus 5.5 --- .../Dialogs/WaterHeatingBillDialog.razor | 48 ++++++++----------- .../Dialogs/WaterHeatingBillDialog.razor.css | 26 ++++++++++ 2 files changed, 47 insertions(+), 27 deletions(-) create mode 100644 Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.css diff --git a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor index 5ad8318..a76c893 100644 --- a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor +++ b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor @@ -14,39 +14,33 @@ - - - - +
+
+
+
NeoVac – Ablesequittung
- - - - - - - +
+
+
+
+
NeoVac – Anteil (‰)
- - - - - - - - +
+
+
+
+
+
Verwaltung – Ihr Anteil
- - - - - - - - +
+
+
+
+
+
diff --git a/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.css b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.css new file mode 100644 index 0000000..3153dc1 --- /dev/null +++ b/Schaad.Accounting.UI/Components/Pages/Dialogs/WaterHeatingBillDialog.razor.css @@ -0,0 +1,26 @@ +/* Two columns of fields; each field is a fixed-width label left of an input that fills the rest, + so labels and inputs line up across rows and sections. */ +.fields { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); + column-gap: 24px; + row-gap: 8px; +} + +.field { + display: flex; + align-items: center; + gap: 8px; +} + +.field ::deep .fluent-input-label { + flex: 0 0 140px; + margin: 0; +} + +.field ::deep fluent-number-field, +.field ::deep fluent-text-field { + flex: 1 1 auto; + min-width: 0; + width: auto; +}