Skip to content

Fix Soundcloud track duration rendering for long tracks#2

Merged
gaelsimon merged 1 commit into
mainfrom
fix/soundcloud-duration-wrap
Jun 11, 2026
Merged

Fix Soundcloud track duration rendering for long tracks#2
gaelsimon merged 1 commit into
mainfrom
fix/soundcloud-duration-wrap

Conversation

@gaelsimon

Copy link
Copy Markdown
Owner

Closes #1.

For tracks longer than an hour (e.g. DJ mixes on Soundcloud), the remaining-time label rendered as -1:23:45 overflowed the 50pt fixed-width frame and SwiftUI wrapped the last digit to a second line.

Fix: drop lineLimit(1) and fixedSize(horizontal: true, vertical: false) on both time labels, and switch the frame constraints from width: to minWidth: so the seek bar stays at a consistent width for normal-length tracks but the label can expand without wrapping for long ones.

@sonarqubecloud

Copy link
Copy Markdown

@gaelsimon gaelsimon merged commit e2b5798 into main Jun 11, 2026
3 checks passed
@gaelsimon gaelsimon deleted the fix/soundcloud-duration-wrap branch June 11, 2026 16:51
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.

Soundcloud track duration rendering

1 participant