From 33f77d2a4a8016a05e3146b83dd11ee1c54b3601 Mon Sep 17 00:00:00 2001 From: tongzihan <15671769870@163.com> Date: Fri, 30 May 2025 16:03:42 +0800 Subject: [PATCH] =?UTF-8?q?@=E7=94=A8=E6=88=B7=E5=90=8D=E8=BF=87=E9=95=BF?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/home/build-profile.json5 | 10 +--------- features/home/src/main/ets/view/CommentKeyboard.ets | 6 ++++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/features/home/build-profile.json5 b/features/home/build-profile.json5 index e6773f9..d5bfe68 100644 --- a/features/home/build-profile.json5 +++ b/features/home/build-profile.json5 @@ -7,15 +7,7 @@ "name": "release", "arkOptions": { "obfuscation": { - "ruleOptions": { - "enable": false, - "files": [ - "./obfuscation-rules.txt" - ] - }, - "consumerFiles": [ - "./consumer-rules.txt" - ] + } }, }, diff --git a/features/home/src/main/ets/view/CommentKeyboard.ets b/features/home/src/main/ets/view/CommentKeyboard.ets index e74c52c..81b6991 100644 --- a/features/home/src/main/ets/view/CommentKeyboard.ets +++ b/features/home/src/main/ets/view/CommentKeyboard.ets @@ -195,6 +195,9 @@ export struct CommentKeyboard { AtSpan(nickname: string) { Text(`@${nickname}`) .fontColor(0xFF133667) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + } // [End comment_keyboard6] @@ -377,6 +380,9 @@ export struct CommentKeyboard { Image(friend.avatar) .width(40) Text(friend.nickname) + .constraintSize({ maxWidth: 100 }) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) } .onClick(() => this.onAtFriendClick(friend)) } -- Gitee