From 0fc610a89f3f12a6b113e031cac36b323b7c0402 Mon Sep 17 00:00:00 2001 From: wuyanan_wd Date: Tue, 19 Nov 2024 17:15:43 +0800 Subject: [PATCH] ref |> 修复评论输入面板语音输入图标不居中问题 --- sight_harmony/features/wdComponent/src/main/ets/components/comment/view/VoiceInputView.ets | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sight_harmony/features/wdComponent/src/main/ets/components/comment/view/VoiceInputView.ets b/sight_harmony/features/wdComponent/src/main/ets/components/comment/view/VoiceInputView.ets index f19c2bd..fcd1dba 100644 --- a/sight_harmony/features/wdComponent/src/main/ets/components/comment/view/VoiceInputView.ets +++ b/sight_harmony/features/wdComponent/src/main/ets/components/comment/view/VoiceInputView.ets @@ -45,14 +45,12 @@ export struct VoiceInputView { }) } }.height(100) - Button() - .type(ButtonType.Circle) - .backgroundImage($r('app.media.WDInput_voice_longPress_icon')) - .backgroundColor(Color.White) + Image($r('app.media.WDInput_voice_longPress_icon')) .width(60) .height(60) + .gesture( - LongPressGesture() + LongPressGesture({duration:300}) .onAction((event: GestureEvent) => { // this this.playAnimationOne = true -- libgit2 0.24.0