From 5a204df931b3555f36d24ce9c8b72110e6d2302e Mon Sep 17 00:00:00 2001 From: Spicy_Marinara Date: Wed, 15 Oct 2025 08:34:06 +0200 Subject: [PATCH] Fix panel to properly stretch from screen edge to chat border - use width calculation instead of left/right positioning --- style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/style.css b/style.css index 27572fb..a403024 100644 --- a/style.css +++ b/style.css @@ -105,18 +105,18 @@ body:has(.rpg-panel.rpg-position-left) #sheld { display: none; } -/* Right Position (Default) - Panel fills right margin space */ +/* Right Position (Default) - Panel fills right margin space from chat edge to screen edge */ .rpg-panel.rpg-position-right { right: 0; - left: calc(50% + var(--sheldWidth) / 2); + width: calc(50vw - var(--sheldWidth) / 2); border-left: 3px solid var(--rpg-border); box-shadow: -5px 0 20px var(--rpg-shadow); } -/* Left Position - Panel fills left margin space */ +/* Left Position - Panel fills left margin space from screen edge to chat edge */ .rpg-panel.rpg-position-left { left: 0; - right: calc(50% + var(--sheldWidth) / 2); + width: calc(50vw - var(--sheldWidth) / 2); border-right: 3px solid var(--rpg-border); box-shadow: 5px 0 20px var(--rpg-shadow); }