From 37f4f606f68d71f51ba34733c9d4e77caec9b64e Mon Sep 17 00:00:00 2001 From: Evan Date: Thu, 12 Mar 2026 19:50:43 -0700 Subject: [PATCH] reduce margin for player info & control panel (#3414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: To give more space in the center of the screen remove the top & bottom margin. Also make the control panel & player info panel slightly shorter & longer. Screenshot 2026-03-12 at 7 20 40 PM ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan --- index.html | 4 ++-- src/client/graphics/layers/ControlPanel.ts | 10 +++++----- src/client/graphics/layers/PlayerInfoOverlay.ts | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 7c22c1357..f6a07f4ed 100644 --- a/index.html +++ b/index.html @@ -269,7 +269,7 @@
-
+
+
this.handleRatioSliderInput(e)} @pointerup=${(e: Event) => this.handleRatioSliderPointerUp(e)} - class="flex-1 h-2 accent-blue-500 cursor-pointer" + class="flex-1 h-1.5 accent-blue-500 cursor-pointer" />
`; @@ -384,7 +384,7 @@ export class ControlPanel extends LitElement implements Layer { return html`
e.preventDefault()} > diff --git a/src/client/graphics/layers/PlayerInfoOverlay.ts b/src/client/graphics/layers/PlayerInfoOverlay.ts index d1cab6db8..d936f921e 100644 --- a/src/client/graphics/layers/PlayerInfoOverlay.ts +++ b/src/client/graphics/layers/PlayerInfoOverlay.ts @@ -318,12 +318,12 @@ export class PlayerInfoOverlay extends LitElement implements Layer { const playerTeam = getTranslatedPlayerTeamLabel(player.team()); return html` -
+
@@ -402,7 +402,7 @@ export class PlayerInfoOverlay extends LitElement implements Layer { >`} ${this.renderPlayerNameIcons(player)} ${allianceHtml ?? ""}
-
+
${this.displayUnitCount(player, UnitType.City, cityIcon)} ${this.displayUnitCount(player, UnitType.Factory, factoryIcon)} ${this.displayUnitCount(player, UnitType.Port, portIcon)} @@ -440,7 +440,7 @@ export class PlayerInfoOverlay extends LitElement implements Layer { return html`
${greenPercent > 0 @@ -518,13 +518,13 @@ export class PlayerInfoOverlay extends LitElement implements Layer { return html`
this.hide()} @contextmenu=${(e: MouseEvent) => e.preventDefault()} >
${this.player !== null ? this.renderPlayerInfo(this.player) : ""} ${this.unit !== null ? this.renderUnitInfo(this.unit) : ""}