Showing
1 changed file
with
5 additions
and
3 deletions
| @@ -330,7 +330,7 @@ struct ChildCommentItem { | @@ -330,7 +330,7 @@ struct ChildCommentItem { | ||
| 330 | } | 330 | } |
| 331 | } | 331 | } |
| 332 | .maxLines(1) | 332 | .maxLines(1) |
| 333 | - .layoutWeight(1) | 333 | + .flexShrink(1) |
| 334 | .fontSize(14) | 334 | .fontSize(14) |
| 335 | .fontColor($r('app.color.color_222222')) | 335 | .fontColor($r('app.color.color_222222')) |
| 336 | .fontWeight(FontWeight.Medium) | 336 | .fontWeight(FontWeight.Medium) |
| @@ -341,7 +341,7 @@ struct ChildCommentItem { | @@ -341,7 +341,7 @@ struct ChildCommentItem { | ||
| 341 | /// 人民号>置顶>作者 | 341 | /// 人民号>置顶>作者 |
| 342 | 342 | ||
| 343 | //人民号 | 343 | //人民号 |
| 344 | - if (this.item.fromUserType !== 1) { | 344 | + if (this.item.fromUserType == 2) { |
| 345 | Image($r('app.media.comment_rmh_tag')).width(20).height(20).margin({ left: 5 }); | 345 | Image($r('app.media.comment_rmh_tag')).width(20).height(20).margin({ left: 5 }); |
| 346 | } | 346 | } |
| 347 | //置顶 | 347 | //置顶 |
| @@ -544,6 +544,8 @@ struct commentHeaderView { | @@ -544,6 +544,8 @@ struct commentHeaderView { | ||
| 544 | //昵称 | 544 | //昵称 |
| 545 | Text(this.item.fromUserName) | 545 | Text(this.item.fromUserName) |
| 546 | .fontSize(14) | 546 | .fontSize(14) |
| 547 | + .maxLines(1) | ||
| 548 | + .flexShrink(1) | ||
| 547 | .fontColor($r('app.color.color_222222')) | 549 | .fontColor($r('app.color.color_222222')) |
| 548 | .fontWeight(FontWeight.Medium) | 550 | .fontWeight(FontWeight.Medium) |
| 549 | .margin({ left: 5 }) | 551 | .margin({ left: 5 }) |
| @@ -553,7 +555,7 @@ struct commentHeaderView { | @@ -553,7 +555,7 @@ struct commentHeaderView { | ||
| 553 | /// 人民号>置顶>作者 | 555 | /// 人民号>置顶>作者 |
| 554 | 556 | ||
| 555 | //人民号 | 557 | //人民号 |
| 556 | - if (this.item.fromUserType !== 1) { | 558 | + if (this.item.fromUserType == 2) { |
| 557 | Image($r('app.media.comment_rmh_tag')).width(20).height(20).margin({ left: 5 }); | 559 | Image($r('app.media.comment_rmh_tag')).width(20).height(20).margin({ left: 5 }); |
| 558 | } | 560 | } |
| 559 | //置顶 | 561 | //置顶 |
-
Please register or login to post a comment