mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix reaction height issue (#1482)
- Fix reaction height issue - Add regression test - Fix reaction summary button color for text based reactions
This commit is contained in:
@@ -95,10 +95,11 @@ private struct ReactionSummaryButton: View {
|
||||
HStack(spacing: 4) {
|
||||
Text(reaction.displayKey)
|
||||
.font(.compound.headingSM)
|
||||
.foregroundColor(textColor)
|
||||
if reaction.count > 1 {
|
||||
Text(String(reaction.count))
|
||||
.font(.compound.headingSM)
|
||||
.foregroundColor(highlighted ? Color.compound.textOnSolidPrimary : Color.compound.textSecondary)
|
||||
.foregroundColor(textColor)
|
||||
}
|
||||
}
|
||||
.padding(.vertical, 8)
|
||||
@@ -106,6 +107,10 @@ private struct ReactionSummaryButton: View {
|
||||
.background(highlighted ? Color.compound.bgActionPrimaryRest : .clear, in: Capsule())
|
||||
.accessibilityElement(children: .combine)
|
||||
}
|
||||
|
||||
var textColor: Color {
|
||||
highlighted ? Color.compound.textOnSolidPrimary : Color.compound.textSecondary
|
||||
}
|
||||
}
|
||||
|
||||
private struct ReactionSummarySenderView: View {
|
||||
|
||||
Reference in New Issue
Block a user