mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix the touch area size for the voice message button. (#2174)
This commit is contained in:
@@ -53,7 +53,6 @@ struct VoiceMessageButton: View {
|
||||
.animation(nil, value: state)
|
||||
.buttonStyle(VoiceMessageButtonStyle())
|
||||
.disabled(state == .loading)
|
||||
.background(Circle().foregroundColor(.compound.bgCanvasDefault))
|
||||
.accessibilityLabel(accessibilityLabel)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Fix the touch area size for the voice message button.
|
||||
Reference in New Issue
Block a user