Style fix

This commit is contained in:
Thomas Ricouard 2024-05-05 18:10:32 +02:00
parent c4dee39efe
commit 88218cd6ec

View file

@ -171,16 +171,18 @@ struct LatestPostsWidgetView : View {
.frame(width: 16, height: 16) .frame(width: 16, height: 16)
} }
HStack(spacing: 0) { HStack(spacing: 0) {
if family != .systemSmall {
Text(status.account.safeDisplayName) Text(status.account.safeDisplayName)
} .foregroundStyle(.primary)
if family != .systemSmall {
Text(" @") Text(" @")
.foregroundStyle(.tertiary)
Text(status.account.username) Text(status.account.username)
.foregroundStyle(.tertiary)
}
Spacer() Spacer()
} }
.font(.subheadline) .font(.subheadline)
.fontWeight(.semibold) .fontWeight(.semibold)
.foregroundStyle(.secondary)
.lineLimit(1) .lineLimit(1)
} }
} }