From 0926390205b3e74639a77cd5d2baf1c1fcfb83db Mon Sep 17 00:00:00 2001 From: Spicy_Marinara Date: Tue, 14 Oct 2025 13:16:06 +0200 Subject: [PATCH] fix: Add margin auto to keep chat centered with panel open - Forces #sheld to use margin: auto when panel is visible - Prevents chat from being pushed to one side - Applies to both left and right panel positions --- style.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/style.css b/style.css index 7196b5f..31b0e44 100644 --- a/style.css +++ b/style.css @@ -1,3 +1,12 @@ + +/* Ensure chat stays centered when panel is visible */ +body:has(.rpg-panel.rpg-position-right) #sheld { + margin: auto !important; +} + +body:has(.rpg-panel.rpg-position-left) #sheld { + margin: auto !important; +} /* ============================================ RPG COMPANION - GAME-LIKE UI - RESPONSIVE ============================================ */