mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix account button on macOS
This commit is contained in:
parent
1cd2dbe5f7
commit
8f2b570163
@ -20,7 +20,7 @@ struct AccountViewButton: View {
|
||||
if let name = model.current?.app?.rawValue.capitalized {
|
||||
Image(name)
|
||||
.resizable()
|
||||
.frame(width: 30, height: 30)
|
||||
.frame(width: accountImageSize, height: accountImageSize)
|
||||
} else {
|
||||
Image(systemName: "globe")
|
||||
}
|
||||
@ -36,6 +36,14 @@ struct AccountViewButton: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var accountImageSize: Double {
|
||||
#if os(macOS)
|
||||
20
|
||||
#else
|
||||
30
|
||||
#endif
|
||||
}
|
||||
|
||||
private var label: some View {
|
||||
Label(model.current?.description ?? "Select Account", systemImage: "globe")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user