From d3e19fdd42cc5a57727fcf30ad8463ba451d3637 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 18 Sep 2026 01:18:47 +0000 Subject: [PATCH] Test portrait HUD stack spacing --- tests/wiring.test.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/wiring.test.mjs b/tests/wiring.test.mjs index 3db6d75..f53ed3f 100644 --- a/tests/wiring.test.mjs +++ b/tests/wiring.test.mjs @@ -111,3 +111,11 @@ test('player damage is per projectile with no global cooldown or volley suppress assert.doesNotMatch(source, /nextPirateVolleyId/); assert.doesNotMatch(source, /volleyId/); }); + +test('portrait status cards sit tightly beneath the top HUD', async () => { + const source = await read('src/mobile-hud.js'); + + assert.match(source, /\.steam-player-card \{[\s\S]*?top: clamp\(80px, 10\.3vh, 90px\)/); + assert.match(source, /\.steam-enemy-card \{[\s\S]*?top: clamp\(80px, 10\.3vh, 90px\)/); + assert.match(source, /@media \(min-width: 700px\)[\s\S]*?\.steam-player-card,[\s\S]*?\.steam-enemy-card \{[\s\S]*?top: clamp\(70px, 20vh, 104px\)/); +});