Skip to content

Commit 256c734

Browse files
committed
fix(macos): add breathing room between dashboard titlebar buttons
1 parent 68c18ca commit 256c734

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/macos/Sources/OpenClaw/DashboardWindowController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,11 @@ final class DashboardWindowController: NSWindowController, WKNavigationDelegate,
496496

497497
let stack = NSStackView(views: [sidebar, back, forward])
498498
stack.orientation = .horizontal
499-
stack.spacing = 6
499+
stack.spacing = 12
500500
stack.edgeInsets = NSEdgeInsets(top: 0, left: 12, bottom: 0, right: 0)
501-
stack.setFrameSize(NSSize(width: 104, height: 28))
501+
// Fixed accessory frame: 12 leading inset + three ~27pt buttons + two
502+
// 12pt gaps. Keep in sync with `spacing`/`edgeInsets` above.
503+
stack.setFrameSize(NSSize(width: 116, height: 28))
502504

503505
let accessory = NSTitlebarAccessoryViewController()
504506
accessory.view = stack

0 commit comments

Comments
 (0)