From 93cc962b82748259db9eee4a1c73ad76e07fc464 Mon Sep 17 00:00:00 2001 From: gnacho Date: Sun, 4 Oct 2026 09:38:42 +0200 Subject: [PATCH 1/5] fix(app): decision solutions readable - actions in two rows, attachments only while editing --- app/src/components/DecisionModal.tsx | 176 +++++++++++++++------------ 1 file changed, 96 insertions(+), 80 deletions(-) diff --git a/app/src/components/DecisionModal.tsx b/app/src/components/DecisionModal.tsx index adf4f89..06d5cb0 100644 --- a/app/src/components/DecisionModal.tsx +++ b/app/src/components/DecisionModal.tsx @@ -88,6 +88,8 @@ function AttachmentRow({ e.preventDefault()} className="w-7 h-7 rounded-lg text-muted hover:bg-surface2 flex items-center justify-center shrink-0" aria-label={t('decisions.attachment.download', { name: att.filename })} > @@ -97,6 +99,7 @@ function AttachmentRow({ {solAttError?.solutionId === s.id && (

)} - - )} - -

- {editingSolutionId !== s.id && ( +
+ ) : ( <> - {(s.proposer_id === user?.id || user?.role === 'admin') && ( - <> - + {s.title} +

+ {chosen && ( + + + )} + + {(s.proposer_id === user?.id || user?.role === 'admin') && ( - - )} - {decision.status === 'open' && ( - - )} - {decision.status !== 'open' && ( - - + )} + + {s.description && ( +

+ {s.description} +

)} - {decision.status === 'open' && canDecide && ( - + {solAttError.message} +

)} + {/* Fila inferior: like + elegir */} +
+ {decision.status === 'open' ? ( + + ) : ( + + + )} + {decision.status === 'open' && canDecide && ( + + )} +
)} From f764b5bef2863e0b5044fa32731fd9a6507c259d Mon Sep 17 00:00:00 2001 From: gnacho Date: Sun, 4 Oct 2026 09:58:15 +0200 Subject: [PATCH 2/5] fix(app): decision solutions - vote beside edit, choose floats in text gap --- app/src/components/DecisionModal.tsx | 55 ++++++++++++++-------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/app/src/components/DecisionModal.tsx b/app/src/components/DecisionModal.tsx index 06d5cb0..f1a5eb3 100644 --- a/app/src/components/DecisionModal.tsx +++ b/app/src/components/DecisionModal.tsx @@ -654,7 +654,7 @@ export function DecisionModal({ ) : ( <> - {/* Fila superior: titulo + editar */} + {/* Fila superior: titulo + like + editar */}

)}

+ {decision.status === 'open' ? ( + + ) : ( + + + )} {(s.proposer_id === user?.id || user?.role === 'admin') && ( - ) : ( - - - )} + {/* Autor + Elegir flotando a la derecha: sin separador, + encaja en el hueco que deja el texto */} +
+ + {t('decisions.by', { name: s.proposer_username })} + {decision.status === 'open' && canDecide && ( From 272e570f8eb7a5e185d79e946a6d63bf6073eaef Mon Sep 17 00:00:00 2001 From: gnacho Date: Sun, 4 Oct 2026 10:13:48 +0200 Subject: [PATCH 3/5] fix(app): decision modal fits mobile - shared action row and stacked comment form --- app/src/components/DecisionModal.tsx | 117 ++++++++++++++------------- 1 file changed, 63 insertions(+), 54 deletions(-) diff --git a/app/src/components/DecisionModal.tsx b/app/src/components/DecisionModal.tsx index f1a5eb3..3838ea9 100644 --- a/app/src/components/DecisionModal.tsx +++ b/app/src/components/DecisionModal.tsx @@ -746,7 +746,7 @@ export function DecisionModal({ {/* Proponer solución */} {decision.status === 'open' && ( -
+