Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Keep a list row's separator under its title beside a badge

Țugui Dragoș6088ae8d9348
diff --git a/Peel/Views/Badge.swift b/Peel/Views/Badge.swift
index a7c7b872..24d3f434 100644
--- a/Peel/Views/Badge.swift
+++ b/Peel/Views/Badge.swift
@@ -12,19 +12,21 @@ struct Badge: View {
var tint: Color?
var body: some View {
- Label {
- title
- } icon: {
- Image(systemName: systemImage).rowTint(tint)
+ LeavesRowSeparatorAlone {
+ Label {
+ title
+ } icon: {
+ Image(systemName: systemImage).rowTint(tint)
+ }
+ // One line: a badge that doesn't fit goes to the next line of its row whole, and is cut only when it
+ // is wider than the row itself.
+ .lineLimit(1)
+ .font(.caption)
+ .foregroundStyle(.secondary)
+ .padding(.horizontal, 7)
+ .padding(.vertical, 2)
+ .background(.quaternary, in: .capsule)
}
- // One line: a badge that doesn't fit goes to the next line of its row whole, and is cut only when it
- // is wider than the row itself.
- .lineLimit(1)
- .font(.caption)
- .foregroundStyle(.secondary)
- .padding(.horizontal, 7)
- .padding(.vertical, 2)
- .background(.quaternary, in: .capsule)
}
}