mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +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)
|
.animation(nil, value: state)
|
||||||
.buttonStyle(VoiceMessageButtonStyle())
|
.buttonStyle(VoiceMessageButtonStyle())
|
||||||
.disabled(state == .loading)
|
.disabled(state == .loading)
|
||||||
.background(Circle().foregroundColor(.compound.bgCanvasDefault))
|
|
||||||
.accessibilityLabel(accessibilityLabel)
|
.accessibilityLabel(accessibilityLabel)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,6 +91,10 @@ private struct VoiceMessageButtonStyle: ButtonStyle {
|
|||||||
func makeBody(configuration: Configuration) -> some View {
|
func makeBody(configuration: Configuration) -> some View {
|
||||||
configuration.label
|
configuration.label
|
||||||
.foregroundColor(isEnabled ? .compound.textSecondary.opacity(configuration.isPressed ? 0.6 : 1) : .compound.iconDisabled)
|
.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