mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Fix account button on macOS
This commit is contained in:
		@@ -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")
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user