Skip to content

Commit

Permalink
Messages badge layout fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Oct 10, 2023
1 parent a8512fc commit 2a2e100
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,17 @@ struct NotificationsView: View {
}

Spacer()

if subscription.hasMessage {
Text(String(subscription.messagesCount))
.foregroundColor(.Inverse100)
.font(.system(size: 13, weight: .medium))
.frame(width: 20, height: 20)
.background {
Circle().foregroundColor(.blue100)
}
VStack{
Text(String(subscription.messagesCount))
.foregroundColor(.Inverse100)
.font(.system(size: 13, weight: .medium).monospacedDigit())
.padding(.horizontal, 8)
.padding(.vertical, 4)
}.background {
Capsule().foregroundColor(.blue100)
}
}
}
}
Expand Down

0 comments on commit 2a2e100

Please sign in to comment.