From c499ba4f9242a01616ca3e476d16f793d794ab71 Mon Sep 17 00:00:00 2001 From: Fernando Davila Date: Wed, 4 Nov 2026 21:08:30 -0600 Subject: [PATCH] =?UTF-8?q?feat(screening):=20aire=20entre=20las=20etiquet?= =?UTF-8?q?as=20de=20decisi=C3=B3n=20y=20origen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/app.css | 2 ++ app/templates/screening/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/app.css b/app/static/app.css index f7e80c4..a0a997f 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -408,6 +408,8 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su } .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; } .badge--plano::before { display: none; } +/* Varias etiquetas juntas (p. ej. decisión + origen en Screening): con aire entre ellas al envolver. */ +.badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; } .badge--grande { height: 26px; padding: 0 11px; font-size: 13px; font-weight: 600; } .badge--chica { height: 22px; padding: 0 9px; font-size: 12px; } .badge--mini { height: 18px; padding: 0 7px; font-size: 11px; } diff --git a/app/templates/screening/index.html b/app/templates/screening/index.html index 89e84bf..c3da19f 100644 --- a/app/templates/screening/index.html +++ b/app/templates/screening/index.html @@ -73,7 +73,7 @@ {% elif col.clave == "lista" %}{{ fila.titulo_lista }}{% if fila.lista %}
versión {{ fila.lista.fecha_version.strftime("%d/%m/%Y") }}{% endif %} {% elif col.clave == "texto" %}{{ c.texto_lista or "Bandera de listas declarada en la carga" }}{% if c.alias %} {{ badge("alias", "info") }}{% endif %} {% elif col.clave == "score" %}{{ c.score if c.score is not none else "—" }} - {% elif col.clave == "decision" %}{{ badge(c.decision | capitalize, {"confirmada": "peligro", "descartada": "neutro", "pendiente": "aviso"}[c.decision]) }}{% if c.fuente == fuente_chm %} {{ badge("Declarada", "acento") }}{% endif %} + {% elif col.clave == "decision" %}{{ badge(c.decision | capitalize, {"confirmada": "peligro", "descartada": "neutro", "pendiente": "aviso"}[c.decision]) }}{% if c.fuente == fuente_chm %}{{ badge("Declarada", "acento") }}{% endif %} {% else %}{{ c.created_at.strftime("%d/%m/%Y") }}{% endif %} {% endcall %}