Skip to content

fix(zbugs-swift): show the issue count in full on iPhone and iPad - #199

Merged
tmm merged 1 commit into
mainfrom
fix/zbugs-swift-issue-count-width
Nov 14, 2026
Merged

tmm merged 1 commit into
mainfrom
fix/zbugs-swift-issue-count-width

Conversation

@tmm

@tmm tmm commented Nov 13, 2026

Copy link
Copy Markdown
Member

The issue list's count now shows in full on iPhone and iPad: 16,155, not 16…. macOS is unchanged. zbugs-swift only, so there's no changeset.

Cause

On iOS 26, the navigation bar gave the count's toolbar item only a few characters' width and truncated the text, even with lots of free room in the bar. It happened on every launch, cold or warm, so it's not about the count arriving late. The count's text is the same as the web app's (toLocaleString, or the rounded N+ estimate); only its width was wrong.

Change

.fixedSize() on the count in the list's toolbar, so the bar lays it out at its full width. Its width now follows the number. Switching from Closed (4,361) to All (20,516) grows the item from 47 to 58 pt.

Checks

Local zbugs-swift backend with 20,000 synthetic issues added to the seed (20,516 total, 16,155 open), Xcode 26.1.1, iOS 26.2 simulators. Screenshots are in the Amp thread.

  • iPhone 17 Pro, Open Issues: 16… on main, from a clean install and again on relaunch. 16,155 with this change, in both cases.
  • iPhone 17 Pro, Closed and All, at the top of the list and scrolled: 4,361 and 20,516 in full.
  • iPad mini, landscape, All Issues: 20… on main, 20,516 with this change.
  • macOS, All Issues: identical before and after. The count's frame is 44.5 pt wide in both.
  • iPhone 16e (the narrowest iOS 26 iPhone), with a scratch ×100 multiplier on the count: 2,051,600 fits next to the other toolbar items.
  • swift format lint --strict on the file.

The list's toolbar gave the count a few characters' width, so 16,155
read as "16…". At its fixed size it shows in full; macOS is unchanged.

Amp-Thread-ID: https://ampcode.com/threads/T-09cae685-ab24-4553-a84f-3ace30fd7ad4
Co-authored-by: tmm <tmm@tmm.dev>
@tmm
tmm merged commit e4f199a into main Nov 14, 2026
35 of 39 checks passed
@tmm
tmm deleted the fix/zbugs-swift-issue-count-width branch November 14, 2026 01:26
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.

2 participants