Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
xugenyuan
2024-05-28 15:48:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7f3a0320e69d38cdbdc4a4f5d607ed252cd7aac8
7f3a0320
1 parent
523c8499
ref |> 解决评论列表用户昵称太长问题和人民号icon显示判断
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
7f3a032
...
...
@@ -330,7 +330,7 @@ struct ChildCommentItem {
}
}
.maxLines(1)
.
layoutWeight
(1)
.
flexShrink
(1)
.fontSize(14)
.fontColor($r('app.color.color_222222'))
.fontWeight(FontWeight.Medium)
...
...
@@ -341,7 +341,7 @@ struct ChildCommentItem {
/// 人民号>置顶>作者
//人民号
if (this.item.fromUserType
!== 1
) {
if (this.item.fromUserType
== 2
) {
Image($r('app.media.comment_rmh_tag')).width(20).height(20).margin({ left: 5 });
}
//置顶
...
...
@@ -544,6 +544,8 @@ struct commentHeaderView {
//昵称
Text(this.item.fromUserName)
.fontSize(14)
.maxLines(1)
.flexShrink(1)
.fontColor($r('app.color.color_222222'))
.fontWeight(FontWeight.Medium)
.margin({ left: 5 })
...
...
@@ -553,7 +555,7 @@ struct commentHeaderView {
/// 人民号>置顶>作者
//人民号
if (this.item.fromUserType
!== 1
) {
if (this.item.fromUserType
== 2
) {
Image($r('app.media.comment_rmh_tag')).width(20).height(20).margin({ left: 5 });
}
//置顶
...
...
Please
register
or
login
to post a comment