Fix account header image alignment and foreground color
This commit is contained in:
parent
57dbe2b8ab
commit
6958abb4ec
|
@ -14,12 +14,15 @@ struct AccountHeaderImageView: View {
|
|||
|
||||
var body: some View {
|
||||
HStack(alignment: .center) {
|
||||
Spacer()
|
||||
Image(rsImage: image)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(height: 48, alignment: .center)
|
||||
.padding()
|
||||
.foregroundColor(Color.primary)
|
||||
Spacer()
|
||||
}
|
||||
.padding(16)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,6 +33,5 @@ struct AccountHeaderImageView_Previews: PreviewProvider {
|
|||
AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)
|
||||
AccountHeaderImageView(image: AppAssets.accountLocalPadImage)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue