Adjust spacing on labels

This commit is contained in:
Jackson Harper
2023-06-05 12:47:27 +08:00
parent abeff164b9
commit 5b00a15eb7
2 changed files with 5 additions and 5 deletions

View File

@ -5,9 +5,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xF5",
"green" : "0xF5",
"red" : "0xF5"
"blue" : "0xF9",
"green" : "0xF9",
"red" : "0xF9"
}
},
"idiom" : "universal"

View File

@ -31,8 +31,8 @@ struct LabelsFlowLayout: View {
return ZStack(alignment: .topLeading) {
ForEach(self.labelItems, id: \.self) { label in
self.item(for: label)
.padding(.horizontal, 2)
.padding(.vertical, 2)
.padding(.horizontal, 3)
.padding(.vertical, 5)
.alignmentGuide(.leading, computeValue: { dim in
if abs(width - dim.width) > geom.size.width {
width = 0