Skip to content

The Settings window can't be narrower than 622 points #612

Closed

Description

@M4n0x

What happens

Since #609 (25ebac4, in 0.15.0-beta.20261113062409.996), the Settings window can't be narrower than 622 points, in any section. When a tiling window manager tiles Settings narrower than that, for example three columns on a 1512-point screen at about 490 points each, the window stays 622 points wide and spills over the next tile. Before #609, Settings followed the tile down to 428 points in Profiles, Status and Help, 446 in General, 520 in Packages and 562 in Bar. Only Theme already needed 616.

Between 622 and about 640 points, the Packages tab's label is also cut to "Packa…".

Steps to reproduce

  1. Open Settings with a window manager that sets window frames itself, such as AeroSpace, OmniWM or yabai.
  2. Tile it narrower than 622 points, for example three windows side by side on a 13-inch screen.
  3. The Settings window stays 622 points wide and covers part of the next tile.

Expected

Settings follows the tile at least as narrow as it did before #609. The tabs and the search field still never overlap (#608), and the tabs stay centred at the default width.

Environment

  • main at 25ebac4 (0.15.0-beta.20261113062409.996)
  • macOS 27.2
  • Measured offscreen; not reproduced live with a window manager

Evidence

  • A temporary test hosts SettingsView in a titled NSWindow through NSHostingView, as CustomizationWindow does. It measured SwiftUI's minimum width per section, before → after fix: keep the Settings search field clear of the tabs #609: General 446 → 622, Bar 562.5 → 622, Theme 616 → 622, Profiles 428 → 622, Packages 520 → 622, Status 428 → 622, Help 428 → 622.
  • Setting the window's frame to 500 points leaves it at 500, 561, 633, 500, 521, 500 and 500 points in those sections before fix: keep the Settings search field clear of the tabs #609, and at 622 points (633 in Theme) after.
  • A resize through Accessibility reaches the same AppKit call, -[NSWindow _setFrameCommon:display:fromServer:], so window managers run into the same limit.
  • --render-scenes at 622–630 points shows "Packa…". Scenes below 622 points show General and the search field cut off, but only because a scene forces its width; the real window never gets that narrow.

Diagnosis

SettingsHeader in Sources/StableBar/CustomizationWindow.swift (lines 246–278 on main) is one row that can't shrink below 622 points:

  • a placeholder that collapses to 0, then 8 points;
  • the tabs, at least 404 points (7 × 56 plus 6 × 2);
  • 8 points, then the 170-point search field and the 8 points before the hidden ⌘F button;
  • 12 points of padding on each side.

The window's NSHostingView keeps its default sizingOptions, which turn SwiftUI's minimum size into Auto Layout constraints. AppKit enforces those on every frame change; window.minSize (900) only limits resizing by hand. The old ZStack header's minimum was max(404, 178) + 24 = 428.

A fix could let the header get narrower than the sections themselves need: a search field that can narrow to about 100 points, with the placeholder following its actual width, and/or icon-only tabs through ViewThatFits below some width. That's a layout choice, so it needs renders for the maintainer.

Related

Triaged by Claude Code (claude-opus-5-5), cross-checked with GPT-6.1-sol.

Activity

  1. added
    bug
    on Nov 13, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. stablebar-releases commented on Nov 20, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.18.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugreleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions