Skip to content

Commit 8e6e92b

Browse files
committed
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
1 parent f0c626d commit 8e6e92b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/yasgui/src/sidePanel/SidePanel.scss‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
flex-direction: column;
2828
align-items: center;
2929
gap: 4px;
30-
width: 52px;
31-
padding: 4px 0 16px 12px;
30+
// Same 12px on both sides, so the buttons sit as far from the card as from the window edge
31+
width: 60px;
32+
padding: 4px 12px 16px;
3233
box-sizing: border-box;
3334
}
3435

@@ -78,7 +79,7 @@
7879
width: var(--yasgui-side-panel-width, 300px);
7980
min-width: 0;
8081
min-height: 0;
81-
padding: 4px 12px 16px 16px;
82+
padding: 4px 12px 16px;
8283
box-sizing: border-box;
8384
}
8485

0 commit comments

Comments
 (0)