From 5b00a15eb7c1b8594a9582dc60f02e28039e6aa2 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 5 Jun 2023 12:47:27 +0800 Subject: [PATCH] Adjust spacing on labels --- .../_labelBackground.colorset/Contents.json | 6 +++--- .../Sources/Views/FeedItem/LabelsFlowLayout.swift | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/Colors/ThemeColors.xcassets/_labelBackground.colorset/Contents.json b/apple/OmnivoreKit/Sources/Views/Colors/ThemeColors.xcassets/_labelBackground.colorset/Contents.json index 30506bb70..61575f6d4 100644 --- a/apple/OmnivoreKit/Sources/Views/Colors/ThemeColors.xcassets/_labelBackground.colorset/Contents.json +++ b/apple/OmnivoreKit/Sources/Views/Colors/ThemeColors.xcassets/_labelBackground.colorset/Contents.json @@ -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" diff --git a/apple/OmnivoreKit/Sources/Views/FeedItem/LabelsFlowLayout.swift b/apple/OmnivoreKit/Sources/Views/FeedItem/LabelsFlowLayout.swift index 89b03a172..06425da27 100644 --- a/apple/OmnivoreKit/Sources/Views/FeedItem/LabelsFlowLayout.swift +++ b/apple/OmnivoreKit/Sources/Views/FeedItem/LabelsFlowLayout.swift @@ -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