diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index c4552f4..381cb2d 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -940,11 +940,11 @@ export function OrderWizard({ {/* Step 3 Categories inside left sidebar */} {step === 3 && ( -
-

+
+

Kategorien

-
+
{visibleCategories.map((cat) => { const sel = selections[cat.id] const hasSelection = (sel?.productIds && sel.productIds.length > 0) || !!sel?.productId @@ -956,7 +956,7 @@ export function OrderWizard({ )}
@@ -111,8 +111,8 @@ export function StepSoftware({
- {/* ─── CONTENT AREA (Inherits scrolling from parent, no nested double scrollbar) ─── */} - + {/* ─── SCROLLABLE CONTENT AREA (flex-1 min-h-0 min-w-0 overflow-y-auto pr-3 pb-12) ─── */} +
{/* Category selection status header */} {(() => { const isMissingRequired = currentCategory.is_required && !sel?.productId && (!sel?.productIds || sel.productIds.length === 0) return ( -
-
- +

{currentCategory.name} {isMissingRequired && ( - + PFLICHTFELD AUSWÄHLEN! )}

-

+

{currentCategory.allow_multiselect ? 'Mehrfachauswahl möglich' : 'Einzelauswahl'}

{sel?.productIds && sel.productIds.length > 0 ? ( - + {sel.productIds.length} Ausgewählt ) : sel?.productId ? ( - + Ausgewählt ) : currentCategory.is_required ? ( - + Bitte auswählen! ) : ( - + Optional )} @@ -170,53 +170,57 @@ export function StepSoftware({ ) })()} - {/* Products List */} + {/* Products List (grid-cols-1 xl:grid-cols-2 gap-3) */} {catProducts.length === 0 ? (

Keine Produkte in dieser Kategorie im aktuellen Abrechnungsmodell vorhanden.

) : currentCategory.allow_multiselect ? ( -
+
{catProducts.map(product => { const isChecked = sel?.productIds?.includes(product.id) ?? false const disabled = isProductDisabled(product, currentCategory.id) return ( -
+