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)
|
.fontWeight(.medium)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
|
||||||
if let subscribers = enrichedAuthor.formattedSubscriberCount {
|
Group {
|
||||||
Text(subscribers)
|
if let subscribers = enrichedAuthor.formattedSubscriberCount {
|
||||||
.font(.caption)
|
Text(subscribers)
|
||||||
.foregroundStyle(.secondary)
|
} else if isLoadingVideoDetails && video.supportsAPIStats {
|
||||||
.lineLimit(1)
|
Text("1.2M subscribers")
|
||||||
|
.redacted(reason: .placeholder)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.font(.caption)
|
||||||
|
.foregroundStyle(.secondary)
|
||||||
|
.lineLimit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user