Polish match detail final scoreboard
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
|
||||
.historical-scoreboard-layout__main {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) minmax(0, 1fr);
|
||||
grid-template-columns: minmax(0, 1fr) minmax(240px, 340px) minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
padding: 24px 28px;
|
||||
padding: 28px 30px;
|
||||
border: 1px solid rgba(210, 182, 118, 0.2);
|
||||
border-radius: 24px;
|
||||
background:
|
||||
@@ -32,14 +32,14 @@
|
||||
|
||||
.historical-scoreboard-side {
|
||||
display: grid;
|
||||
grid-template-columns: 112px minmax(0, 1fr);
|
||||
grid-template-columns: 124px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
min-height: 136px;
|
||||
min-height: 148px;
|
||||
}
|
||||
|
||||
.historical-scoreboard-side--axis {
|
||||
grid-template-columns: minmax(0, 1fr) 112px;
|
||||
grid-template-columns: minmax(0, 1fr) 124px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
}
|
||||
|
||||
.historical-scoreboard-side__emblem {
|
||||
width: 112px;
|
||||
height: 112px;
|
||||
width: 124px;
|
||||
height: 124px;
|
||||
border-radius: 999px;
|
||||
object-fit: contain;
|
||||
padding: 10px;
|
||||
@@ -110,7 +110,7 @@
|
||||
|
||||
.historical-scoreboard-center__score {
|
||||
color: var(--text);
|
||||
font-size: clamp(4rem, 8vw, 7rem);
|
||||
font-size: clamp(4.6rem, 8.6vw, 7.6rem);
|
||||
line-height: 0.9;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ function renderMatchDetail(item, nodes) {
|
||||
const mapName = item.map?.pretty_name || item.map?.name || "Mapa no disponible";
|
||||
const serverName = item.server?.name || item.server?.slug || "Servidor no disponible";
|
||||
nodes.title.textContent = mapName;
|
||||
nodes.summary.textContent = `${serverName} - ${formatDetailSubtitle(item)}`;
|
||||
nodes.summary.textContent = serverName;
|
||||
nodes.note.textContent = "";
|
||||
renderMapHero(item, mapName, nodes);
|
||||
nodes.grid.innerHTML = renderScoreboardDetail(item, { mapName, serverName });
|
||||
@@ -337,19 +337,6 @@ function normalizeLookupText(value) {
|
||||
.trim();
|
||||
}
|
||||
|
||||
function formatDetailSubtitle(item) {
|
||||
if (item.capture_basis === "rcon-materialized-admin-log") {
|
||||
return "RCON";
|
||||
}
|
||||
if (item.capture_basis === "rcon-competitive-window") {
|
||||
return "RCON";
|
||||
}
|
||||
if (item.result_source === "public-scoreboard-match") {
|
||||
return "Partida del scoreboard";
|
||||
}
|
||||
return "Partida historica";
|
||||
}
|
||||
|
||||
function formatTeamSide(value) {
|
||||
const normalized = String(value || "").toLowerCase();
|
||||
if (normalized === "allies" || normalized === "allied") {
|
||||
|
||||
Reference in New Issue
Block a user