mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use Capsule rather than cornerRadius to create text chip
This commit is contained in:
parent
2f4f24dd6b
commit
fd1e80b01d
2 changed files with 1 additions and 3 deletions
|
|
@ -156,7 +156,6 @@ public struct GridCard: View {
|
|||
}
|
||||
Spacer()
|
||||
}
|
||||
.frame(height: 30)
|
||||
.padding(.horizontal)
|
||||
.padding(.bottom, 8)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ public struct TextChip: View {
|
|||
.font(.appFootnote)
|
||||
.foregroundColor(color.isDark ? .white : .black)
|
||||
.lineLimit(1)
|
||||
.background(color)
|
||||
.cornerRadius(cornerRadius)
|
||||
.background(Capsule().fill(color))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue