设置搜索输入框输入内容过长时会遮挡最右侧叉号

Signed-off-by: zhangjintao <zhangjintao53@chinasoftinc.com>
This commit is contained in:
zhangjintao 2024-04-08 16:51:42 +08:00
parent 92074edf86
commit ed630a3b1b

View File

@ -61,7 +61,7 @@ export default struct SearchHeader {
.caretColor($r("sys.color.ohos_id_color_text_primary_activated"))
.enterKeyType(EnterKeyType.Search)
.backgroundColor($r("app.color.white_bg_color"))
.padding({ left: $r('app.float.wh_padding_35') })
.padding({ left: $r('app.float.wh_padding_35'), right: $r('app.float.wh_padding_35') })
.border({
width: $r('app.float.wh_value_1_5'),
color: $r("sys.color.ohos_id_color_fourth"),