mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 17:29:45 +00:00
Fix subscriber count layout shift in VideoInfoView channel row
This commit is contained in:
@@ -780,12 +780,17 @@ struct VideoInfoView: View {
|
||||
.fontWeight(.medium)
|
||||
.lineLimit(1)
|
||||
|
||||
if let subscribers = enrichedAuthor.formattedSubscriberCount {
|
||||
Text(subscribers)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(1)
|
||||
Group {
|
||||
if let subscribers = enrichedAuthor.formattedSubscriberCount {
|
||||
Text(subscribers)
|
||||
} else if isLoadingVideoDetails && video.supportsAPIStats {
|
||||
Text("1.2M subscribers")
|
||||
.redacted(reason: .placeholder)
|
||||
}
|
||||
}
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user