mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-27 21:09:17 +01:00
Sidebar: Make badge bigger + limit to 99+
This commit is contained in:
parent
0db7ea897a
commit
8e99c195e0
@ -44,12 +44,12 @@ struct SideBarView<Content: View>: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
Circle()
|
Circle()
|
||||||
.fill(.red)
|
.fill(.red)
|
||||||
Text(String(count))
|
Text(count > 99 ? "99+" : String(count))
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.font(.caption2)
|
.font(.caption2)
|
||||||
}
|
}
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 24, height: 24)
|
||||||
.offset(x: 10, y: -10)
|
.offset(x: 14, y: -14)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var postButton: some View {
|
private var postButton: some View {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user