ios: fix image context item background color (#1448)

This commit is contained in:
JRoberts
2022-11-28 11:23:40 +04:00
committed by GitHub
parent 8af0229f52
commit e6c5ad5833

View File

@@ -16,6 +16,10 @@ struct ContextItemView: View {
let cancelContextItem: () -> Void
var body: some View {
let bgColor = contextItem.chatDir.sent
? (colorScheme == .light ? sentColorLight : sentColorDark)
: Color(uiColor: .tertiarySystemGroupedBackground)
HStack {
Image(systemName: contextIcon)
.resizable()
@@ -41,7 +45,7 @@ struct ContextItemView: View {
.padding(12)
.frame(minHeight: 50)
.frame(maxWidth: .infinity)
.background(chatItemFrameColor(contextItem, colorScheme))
.background(bgColor)
.padding(.top, 8)
}
}