Skip to content

Commit

Permalink
Fix background color of system chat bubble (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishpatil-g authored Dec 13, 2023
1 parent ab1c139 commit 57b360c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct MessageContentView: View {
.markdownTextStyle {
FontFamilyVariant(.normal)
FontSize(.em(0.85))
ForegroundColor(.white)
ForegroundColor(message.participant == .system ? .black : .white)
}
.markdownBlockStyle(\.codeBlock) { configuration in
configuration.label
Expand Down Expand Up @@ -75,8 +75,8 @@ struct MessageView: View {
}
MessageContentView(message: message)
.padding(10)
.background(.blue)
.foregroundColor(.white)
.background(message.participant == .system ? .gray.opacity(0.25) : .blue)
.foregroundColor(message.participant == .system ? .black : .white)
.roundedCorner(10,
corners: [
.topLeft,
Expand Down

0 comments on commit 57b360c

Please sign in to comment.