Repository navigation
fix: keep segmented settings pickers inside their rows - #406
Merged
Merged
Conversation
The Export Quality picker had a fixed 220pt width. Localized labels need more than that, so the control spilled over the row's sublabel on the left and past the card edge on the right. It now sits below the label, like Preview Position, and has the full row width. Close After had the same fixed-width problem on a smaller scale and now sizes to its labels. Fixes #405 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #405
Problem
In Settings → Export, the Export Quality picker had a fixed width of 220pt. A segmented control never shrinks below what its labels need, so in languages with longer labels (German "Social Media", French "Réseaux sociaux", Spanish, Brazilian Portuguese, Russian) it was wider than its frame. SwiftUI centers the oversized control in the frame, so it covered the row's sublabel on the left and ran past the card edge on the right.
Close After in Settings → Quick Access had the same fixed-width problem on a smaller scale: in German it stuck out about 9pt past the other controls on the right.
Fix
The Export Quality row is one line taller in every language, English included.
Testing
Ran the Debug build in German, Russian and English and checked both tabs: no overlap, and the controls line up with the others on the right. No unit tests cover this layout.
🤖 Generated with Claude Code