diff --git a/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift b/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift index 03e41d1..6050970 100644 --- a/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift +++ b/ios/LibNovel/LibNovel/Views/Player/PlayerViews.swift @@ -119,24 +119,25 @@ struct MiniPlayerView: View { .fill(Color.black.opacity(0.3)) ) - // Progress indicator as bottom border + // Progress indicator - wraps around bottom corners of pill GeometryReader { geo in VStack { Spacer() ZStack(alignment: .leading) { - // Background track - RoundedRectangle(cornerRadius: 1) + // Background track - rounded to match pill shape + Capsule() .fill(Color.white.opacity(0.2)) .frame(height: 3) - // Progress fill - RoundedRectangle(cornerRadius: 1) + // Progress fill - rounded to match pill shape + Capsule() .fill(Color.amber) - .frame(width: geo.size.width * progress, height: 3) + .frame(width: max(3, geo.size.width * progress), height: 3) } + .padding(.horizontal, 4) // Inset slightly from edges so it wraps nicely } } - .padding(.bottom, 0) + .padding(.bottom, 2) } ) .frame(height: 80)