From 19e4af733cf97aae29515a1de5fd27f833fd45f9 Mon Sep 17 00:00:00 2001 From: youdiansaodongxi Date: Tue, 14 May 2024 11:45:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(AppUi):=20=E4=BF=AE=E5=A4=8D=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E5=86=85=E5=AE=B9=E5=92=8C=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E9=87=8D=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/AppUI/SearchInputBar.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qml/AppUI/SearchInputBar.qml b/qml/AppUI/SearchInputBar.qml index b6a11c4..c16a8b2 100644 --- a/qml/AppUI/SearchInputBar.qml +++ b/qml/AppUI/SearchInputBar.qml @@ -79,8 +79,8 @@ UkuiItems.StyleBackground { TextInput { id: textInput clip: true - anchors.right: parent.right - width: parent.width - searchIcon.width + anchors.right: clearButton.left + width: parent.width - searchIcon.width - clearButton.width height: parent.height selectByMouse: true verticalAlignment: TextInput.AlignVCenter @@ -113,6 +113,7 @@ UkuiItems.StyleBackground { } UkuiItems.Button { + id: clearButton anchors.right: parent.right anchors.rightMargin: (parent.height - height) / 2 anchors.verticalCenter: parent.verticalCenter