Update fix for Sneak Peek

This commit is contained in:
Hariharan Mudaliar 2026-01-18 19:40:05 +05:30
commit a4e58b9e70
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
3 changed files with 137 additions and 183 deletions

View file

@ -352,8 +352,8 @@ struct ExtensionProgressIndicatorView: View {
private func resolvedRingDiameter(requested: CGFloat) -> CGFloat {
guard let maxVisualHeight else { return requested }
let clamped = min(requested, max(maxVisualHeight - 6, 18))
return max(18, clamped)
let target = max(min(maxVisualHeight - 12, 24), 16)
return min(requested, target)
}
}