Repository navigation
Mackit 1.0.15
Mackit 1.0.15
The sidebar and the settings tab bar now lay themselves out correctly in every language, and the DMG's install arrow is drawn by hand.
- The sidebar no longer cuts off its own contents in Japanese and other longer translations. The sidebar's list demanded more width than the column it was given, and what didn't fit was clipped off the left edge: in Japanese every item lost the first characters of its name — すべての項目 showed as ての項目 — the icons beside each row and the ツール section heading disappeared entirely, and the storage block at the foot lost its 起動ディスク title and its settings capsule. The list now fills the width it is given and shortens titles with an ellipsis the way every system sidebar does, so the sidebar reads correctly at any width and in all five languages.
- The settings tabs take their labels' widths instead of stretching across the card. Five equal segments left the longest label cramped between its neighbours — "Project Directories" reads プロジェクトのディレクトリ in Japanese. The tab bar now follows the native Mac segmented control's proportions with the selection centered in the toolbar, and if a translation ever outgrows the card the labels shorten instead of running off its edge.
- The DMG's install arrow is drawn by hand. The shaft flicks up as it leaves the app icon, bows through its span and settles at the head, a lighter retrace rides its first half, and the head is an open V of two strokes rather than a filled triangle — a marker's line on the soft gradient instead of vector clip-art. The arrow stays inside the icon band, so where the icons sit and how large the window opens are unchanged.
Under the hood
- The clip was a width fight: the sidebar list carried
.frame(minWidth: 232)while the split-view column renders narrower than that on current macOS — it can even render below its own declared minimum — so the list's content overflowed its column and the overflow came back as a leading-edge clip. The minimum is gone; the column's width belongs tonavigationSplitViewColumnWidth, and the rows already truncated at the tail. The footer's capsule labels and the section headers gainedlineLimit(1)so a narrow sidebar shortens them instead of overflowing. - The tab bar's picker no longer sizes itself to its labels on current macOS:
.pickerStyle(.segmented)fills whatever width it is offered and ignores.fixedSize(), which is what stretched the five tabs across the card.SegmentedBlock— the app's own segmented control, already used by the Homebrew filter band — gained a.contentwidth mode that hugs each label, andViewThatFitsfalls back to the existing equal-width mode, where labels truncate, should a translation ever exceed the card. - Both layouts were verified in a reproduction harness carrying the real
SegmentedBlockand the same Japanese strings, before and after, including at the window's minimum width; the full suite passes at 673 test functions, unchanged since 1.0.13.