diff --git a/features/home/build-profile.json5 b/features/home/build-profile.json5 index e6773f9f5d76a66d6d19fddc9c6ddb3f5621d3b1..d5bfe680196054a1f7f95b09b602d2d42352debf 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 e74c52c2d1ae21421e27e27c5786e5762cded827..81b6991899eb55986e0e9e20edb3939340eaf08c 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)) }