mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Fix the touch area size for the voice message button. (#2174)
This commit is contained in:
parent
45e4cbccee
commit
7cc5990711
@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
1
changelog.d/2038.bugfix
Normal file
1
changelog.d/2038.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix the touch area size for the voice message button.
|
Loading…
x
Reference in New Issue
Block a user