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