diff --git a/app/globals.css b/app/globals.css index 54eb54b..4092ae0 100644 --- a/app/globals.css +++ b/app/globals.css @@ -295,6 +295,7 @@ body { /* position: fixed + top/left/width set by JS via getBoundingClientRect() so the list escapes any overflow:auto ancestor (wizard-answer-area) */ position: fixed; + max-width: calc(100vw - 32px); background: var(--color-surface); border: 1.5px solid var(--color-border-focus); border-radius: var(--radius); @@ -583,9 +584,8 @@ body { margin: 0; } -/* Enunciado: bloque con altura reservada constante, mismo lugar pantalla tras pantalla. */ +/* Enunciado: crece orgánicamente con el contenido, sin altura mínima fija. */ .wizard-prompt-block { - min-height: 116px; flex-shrink: 0; margin-bottom: 20px; } diff --git a/supabase/migrations/20260629000001_set_required_questions.sql b/supabase/migrations/20260629000001_set_required_questions.sql new file mode 100644 index 0000000..d70721b --- /dev/null +++ b/supabase/migrations/20260629000001_set_required_questions.sql @@ -0,0 +1,14 @@ +-- Activar required en todas las preguntas del formulario de cuidadores +-- excepto barrio (2.3) y secciones (type = 'section') +UPDATE public.questions +SET required = true +WHERE survey_id = '30000000-0000-0000-0000-000000000001' + AND code != '2.3' + AND type != 'section'; + +-- Verificar: debe mostrar todas las preguntas con required=true excepto 2.3 +SELECT code, type, required +FROM public.questions +WHERE survey_id = '30000000-0000-0000-0000-000000000001' + AND type != 'section' +ORDER BY position;