Fix Candidato Partido Estilos Mapa

This commit is contained in:
2025-10-03 15:28:51 -03:00
parent 3c8c4917fd
commit fa261ba828
4 changed files with 16 additions and 7 deletions

View File

@@ -48,6 +48,9 @@ export const DevAppLegislativas = () => {
<div className="container-legislativas2025"> <div className="container-legislativas2025">
<h1>Visor de Widgets</h1> <h1>Visor de Widgets</h1>
<CongresoNacionalWidget eleccionId={2} />
<PanelNacionalWidget eleccionId={2} />
<div style={sectionStyle}> <div style={sectionStyle}>
<h2>Widget: Carrusel de Resultados (Home)</h2> <h2>Widget: Carrusel de Resultados (Home)</h2>
<p style={descriptionStyle}> <p style={descriptionStyle}>
@@ -137,11 +140,6 @@ export const DevAppLegislativas = () => {
<ResultadosNacionalesCardsWidget eleccionId={2} focoDistritoId="16" focoCategoriaId={1} cantidadResultados={1} /> <ResultadosNacionalesCardsWidget eleccionId={2} focoDistritoId="16" focoCategoriaId={1} cantidadResultados={1} />
</div> </div>
{/* --- OTROS WIDGETS --- */}
<CongresoNacionalWidget eleccionId={2} />
<PanelNacionalWidget eleccionId={2} />
</div> </div>
); );
}; };

View File

@@ -108,6 +108,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
display: block; display: block;
width: 100%; width: 100%;
text-transform: uppercase;
} }
.candidate-name { .candidate-name {
font-size: 0.95rem; font-size: 0.95rem;

View File

@@ -217,12 +217,22 @@
.partido-nombre { .partido-nombre {
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 1rem;
/* ANTES: 1.05rem */
color: #212529; color: #212529;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 1.2; line-height: 1.2;
text-transform: uppercase;
}
.partido-nombre-normal {
font-size: 1rem;
color: #212529;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
text-transform: uppercase;
} }
.candidato-nombre { .candidato-nombre {

View File

@@ -84,7 +84,7 @@ export const PanelResultados = ({ resultados, estadoRecuento }: PanelResultadosP
{partido.nombreCandidato ? ( {partido.nombreCandidato ? (
<> <>
<span className="candidato-nombre">{partido.nombreCandidato}</span> <span className="candidato-nombre">{partido.nombreCandidato}</span>
<span className="partido-nombre">{partido.nombreCorto || partido.nombre}</span> <span className="partido-nombre-normal">{partido.nombreCorto || partido.nombre}</span>
</> </>
) : ( ) : (
<span className="partido-nombre">{partido.nombreCorto || partido.nombre}</span> <span className="partido-nombre">{partido.nombreCorto || partido.nombre}</span>