Skip to content

Commit

Permalink
Fix the touch area size for the voice message button. (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimau authored Nov 28, 2023
1 parent 45e4cbc commit 7cc5990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ElementX/Sources/Other/VoiceMessage/VoiceMessageButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct VoiceMessageButton: View {
.animation(nil, value: state)
.buttonStyle(VoiceMessageButtonStyle())
.disabled(state == .loading)
.background(Circle().foregroundColor(.compound.bgCanvasDefault))
.accessibilityLabel(accessibilityLabel)
}

Expand Down Expand Up @@ -92,6 +91,10 @@ private struct VoiceMessageButtonStyle: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
configuration.label
.foregroundColor(isEnabled ? .compound.textSecondary.opacity(configuration.isPressed ? 0.6 : 1) : .compound.iconDisabled)
.background(
Circle()
.foregroundColor(configuration.isPressed ? .compound.bgSubtlePrimary : .compound.bgCanvasDefault)
)
}
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/2038.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the touch area size for the voice message button.

0 comments on commit 7cc5990

Please sign in to comment.