padding on roll up header view
This commit is contained in:
@@ -64,10 +64,6 @@ struct SmallRollUpHeaderView: View {
|
|||||||
HStack {
|
HStack {
|
||||||
ForEach(entries, id: \.0) { model in
|
ForEach(entries, id: \.0) { model in
|
||||||
textView(forModel: model)
|
textView(forModel: model)
|
||||||
.font(.title)
|
|
||||||
.fontWeight(.bold)
|
|
||||||
.foregroundColor(model.mood.color)
|
|
||||||
.frame(maxWidth: .infinity)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,11 +78,11 @@ struct SmallRollUpHeaderView: View {
|
|||||||
textView(forModel: model)
|
textView(forModel: model)
|
||||||
.font(.title)
|
.font(.title)
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
.frame(maxWidth: 50)
|
.frame(width: 40, height: 40)
|
||||||
.foregroundColor(Color(UIColor.white))
|
|
||||||
.scaledToFill()
|
.scaledToFill()
|
||||||
.minimumScaleFactor(0.5)
|
.minimumScaleFactor(0.5)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
.foregroundColor(Color(UIColor.white))
|
||||||
}
|
}
|
||||||
.padding([.leading, .trailing], 5)
|
.padding([.leading, .trailing], 5)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user