From a3594b9f69ce7d24af18e1da90cd1553c7c8f786 Mon Sep 17 00:00:00 2001 From: Mathias Vanden Auweele Date: Mon, 19 Oct 2026 16:23:41 +0000 Subject: [PATCH] fix(yasgui): even out the side panel spacing around its buttons The icon rail had 12px on the left of its buttons but only 2px on the right, next to the card. Give the rail 12px on both sides, and drop the open panel's left padding from 16px to 12px to match. Closes #231 --- packages/yasgui/src/sidePanel/SidePanel.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/yasgui/src/sidePanel/SidePanel.scss b/packages/yasgui/src/sidePanel/SidePanel.scss index 38b22ad5..fb709182 100644 --- a/packages/yasgui/src/sidePanel/SidePanel.scss +++ b/packages/yasgui/src/sidePanel/SidePanel.scss @@ -27,8 +27,9 @@ flex-direction: column; align-items: center; gap: 4px; - width: 52px; - padding: 4px 0 16px 12px; + // Same 12px on both sides, so the buttons sit as far from the card as from the window edge + width: 60px; + padding: 4px 12px 16px; box-sizing: border-box; } @@ -78,7 +79,7 @@ width: var(--yasgui-side-panel-width, 300px); min-width: 0; min-height: 0; - padding: 4px 12px 16px 16px; + padding: 4px 12px 16px; box-sizing: border-box; }