diff --git a/app/src/components/DecisionModal.tsx b/app/src/components/DecisionModal.tsx index adf4f89..b40a958 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') && ( - <> + {/* Fila superior: titulo + like + editar */} +
+
+

+ {s.title} +

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

+ {s.description} +

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

)} - {decision.status !== 'open' && ( - -