Skip to content

Fix settings window layout#12

Merged
nicosuave merged 2 commits intomainfrom
nicosuave/fix-settings-layout
Feb 26, 2026
Merged

Fix settings window layout#12
nicosuave merged 2 commits intomainfrom
nicosuave/fix-settings-layout

Conversation

@nicosuave
Copy link
Member

Summary

  • Remove empty NSToolbar that was allocating toolbar space and interfering with NavigationSplitView's sidebar/detail layout
  • Use fixed frame dimensions instead of minimum constraints, matching the working pattern in pynb/mdnb

…d frame

The empty NSToolbar with .unified style was allocating toolbar space that
interfered with NavigationSplitView's sidebar/detail layout. Removing it
and switching from min constraints to a fixed frame matches the working
pattern used in pynb/mdnb.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 01b20ca569

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
.navigationSplitViewStyle(.balanced)
.frame(minWidth: 680, minHeight: 450)
.frame(width: 680, height: 450)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep settings content resizable with the window

Using a fixed .frame(width: 680, height: 450) on the root NavigationSplitView makes the settings content lock to that exact size, so when users resize the settings window (it is still created with the .resizable style mask in AppDelegate), the split view no longer grows with the window and can leave unused blank space instead of expanding the detail/sidebar layout. This regression was introduced by replacing the previous minimum-size frame and is user-visible whenever the window is resized larger than 680×450.

Useful? React with 👍 / 👎.

Fixed-size settings panel doesn't need to be resizable.
@nicosuave nicosuave merged commit 80b4363 into main Feb 26, 2026
91 of 117 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant