mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 10:24:44 +00:00
Fix #984 follow you being out of boundaries
This commit is contained in:
parent
5ca0180c4c
commit
105b7717a9
1 changed files with 15 additions and 14 deletions
|
@ -23,11 +23,22 @@ struct AccountDetailHeaderView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Rectangle()
|
ZStack(alignment: .bottomTrailing) {
|
||||||
.frame(height: Constants.headerHeight)
|
Rectangle()
|
||||||
.overlay {
|
.frame(height: Constants.headerHeight)
|
||||||
headerImageView
|
.overlay {
|
||||||
|
headerImageView
|
||||||
|
}
|
||||||
|
if viewModel.relationship?.followedBy == true {
|
||||||
|
Text("account.relation.follows-you")
|
||||||
|
.font(.scaledFootnote)
|
||||||
|
.fontWeight(.semibold)
|
||||||
|
.padding(4)
|
||||||
|
.background(.ultraThinMaterial)
|
||||||
|
.cornerRadius(4)
|
||||||
|
.padding(8)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
accountInfoView
|
accountInfoView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,16 +69,6 @@ struct AccountDetailHeaderView: View {
|
||||||
}
|
}
|
||||||
.frame(height: Constants.headerHeight)
|
.frame(height: Constants.headerHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
if viewModel.relationship?.followedBy == true {
|
|
||||||
Text("account.relation.follows-you")
|
|
||||||
.font(.scaledFootnote)
|
|
||||||
.fontWeight(.semibold)
|
|
||||||
.padding(4)
|
|
||||||
.background(.ultraThinMaterial)
|
|
||||||
.cornerRadius(4)
|
|
||||||
.padding(8)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.background(theme.secondaryBackgroundColor)
|
.background(theme.secondaryBackgroundColor)
|
||||||
.frame(height: Constants.headerHeight)
|
.frame(height: Constants.headerHeight)
|
||||||
|
|
Loading…
Reference in a new issue