- {Wizard.utils.getIndex(methods.current.id) === 0 && (
-
-
-
- )}
- {Wizard.utils.getIndex(methods.current.id) === 1 && (
-
-
-
- )}
- {Wizard.utils.getIndex(methods.current.id) === 2 && (
-
-
-
- )}
- {Wizard.utils.getIndex(methods.current.id) === 3 && (
-
-
-
+ {/* 2. CONTENIDO (SCROLLEABLE - Meat)
+ flex-1: Ocupa todo el espacio restante.
+ overflow-y-auto: Scrollea solo esta parte.
+ */}
+
+ {/* Aquí renderizamos el panel. Quitamos el 'grid' del padre para evitar conflictos de altura */}
+
+ {Wizard.utils.getIndex(methods.current.id) === 0 && (
+
+
+
+ )}
+ {Wizard.utils.getIndex(methods.current.id) === 1 && (
+
+
+
+ )}
+ {Wizard.utils.getIndex(methods.current.id) === 2 && (
+
+
+
+ )}
+ {Wizard.utils.getIndex(methods.current.id) === 3 && (
+
+
+
+ )}
+
+
+
+ {/* 3. CONTROLES (FIJO - Bottom Bun)
+ flex-none: Siempre visible abajo.
+ */}
+
+
+
+ {wizard.errorMessage && (
+
+ {wizard.errorMessage}
+
)}
-
- {/* Controles */}
-
- {wizard.errorMessage && (
-
- {wizard.errorMessage}
-
- )}
-
- {Wizard.utils.getIndex(methods.current.id) <
- Wizard.steps.length - 1 ? (
+
- ) : (
-
- )}
+
+ {Wizard.utils.getIndex(methods.current.id) <
+ Wizard.steps.length - 1 ? (
+
+ ) : (
+
+ )}
+
- >
- )}
-
-