Minor layout fixes

This commit is contained in:
Arkadiusz Fal
2022-12-16 00:13:36 +01:00
parent f1551141e3
commit d19446d37d
3 changed files with 14 additions and 42 deletions

View File

@@ -15,12 +15,16 @@ struct AccountViewButton: View {
Button {
navigation.presentingAccounts = true
} label: {
HStack {
HStack(spacing: 6) {
if !accountPickerDisplaysUsername || !(model.current?.isPublic ?? true) {
if let name = model.current?.app?.rawValue.capitalized {
Image(name)
.resizable()
.frame(width: accountImageSize, height: accountImageSize)
if #available(iOS 15, macOS 12, *) {
if let name = model.current?.app?.rawValue.capitalized {
Image(name)
.resizable()
.frame(width: accountImageSize, height: accountImageSize)
} else {
Image(systemName: "globe")
}
} else {
Image(systemName: "globe")
}