From 928c1112a153ee8f8f88b385e86a676464b3ae9c Mon Sep 17 00:00:00 2001 From: legop3 Date: Tue, 28 Apr 2026 04:52:05 -0400 Subject: [PATCH] woah --- server/src/services/replayEngineV2.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/server/src/services/replayEngineV2.js b/server/src/services/replayEngineV2.js index f8888958..e0e3b0f1 100644 --- a/server/src/services/replayEngineV2.js +++ b/server/src/services/replayEngineV2.js @@ -516,39 +516,39 @@ function renderSidebarSvg({ const shapes = []; const textRows = []; - const pad = 4; + const pad = 3; const cardX = pad; const cardW = width - pad * 2; let y = pad; // Title card - const titleCardH = Math.max(30, pad * 2 + titleParts.length * 16); + const titleCardH = Math.max(26, pad * 2 + titleParts.length * 15); shapes.push(``); - let ty = y + pad + 12; + let ty = y + pad + 11; for (const part of titleParts) { textRows.push(`${part}`); - ty += 16; + ty += 15; } y += titleCardH + pad; // Drivers card const driverLines = statLines.length ? statLines : ['No active drivers']; - const driversCardH = pad * 2 + 12 + driverLines.length * 14; + const driversCardH = pad * 2 + 11 + driverLines.length * 13; shapes.push(``); - textRows.push(`Drivers`); - let dy = y + pad + 22; + textRows.push(`Drivers`); + let dy = y + pad + 19; for (const line of driverLines) { textRows.push(`${line}`); - dy += 14; + dy += 13; } y += driversCardH + pad; // Chat card const chatCardH = Math.max(80, height - y - pad); shapes.push(``); - textRows.push(`Chat`); + textRows.push(`Chat`); - let cy = y + pad + 14; + let cy = y + pad + 12; const bubbleX = cardX + pad; const bubbleW = cardW - pad * 2; if (!normalizedChats.length) { @@ -558,7 +558,7 @@ function renderSidebarSvg({ const block = normalizedChats[i]; const nameW = Math.min(72, block.nick.length * 5.2); const badgeW = block.roverId ? Math.min(46, Math.max(18, block.roverId.length * 5 + 6)) : 0; - const badgeGap = block.roverId ? 2 : 0; + const badgeGap = block.roverId ? 3 : 0; const prefixChars = Math.ceil((nameW + badgeW + badgeGap + 10) / 5.8); const firstLineRaw = String(block.wrapped[0] || '').trim(); const firstLine = firstLineRaw ? firstLineRaw : ''; @@ -571,13 +571,13 @@ function renderSidebarSvg({ ``, ); const nameX = bubbleX + pad; - const textStartX = nameX + nameW + 2 + (block.roverId ? badgeW + badgeGap : 0); + const textStartX = nameX + nameW + 3 + (block.roverId ? badgeW + badgeGap : 0); textRows.push(`${block.nick}`); if (block.fromDiscord) { textRows.push(``); } if (block.roverId) { - const badgeX = nameX + nameW + 2; + const badgeX = nameX + nameW + 3; const badgeTextX = badgeX + 3; shapes.push( ``,