Showing
1 changed file
with
16 additions
and
14 deletions
| @@ -31,23 +31,25 @@ export struct RmhTitle { | @@ -31,23 +31,25 @@ export struct RmhTitle { | ||
| 31 | .fontColor($r('app.color.color_222222')) | 31 | .fontColor($r('app.color.color_222222')) |
| 32 | .fontWeight(600) | 32 | .fontWeight(600) |
| 33 | .alignSelf(ItemAlign.Start) | 33 | .alignSelf(ItemAlign.Start) |
| 34 | - Row() { | ||
| 35 | - if (this.publishTime) { | ||
| 36 | - Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))) | 34 | + Flex({alignContent: FlexAlign.Start, wrap: FlexWrap.NoWrap}) { |
| 35 | + Row() { | ||
| 36 | + if (this.publishTime) { | ||
| 37 | + Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))) | ||
| 38 | + .fontSize($r("app.float.font_size_12")) | ||
| 39 | + .fontColor($r("app.color.color_B0B0B0")) | ||
| 40 | + Image($r('app.media.point')) | ||
| 41 | + .width(16) | ||
| 42 | + .height(16) | ||
| 43 | + } | ||
| 44 | + Text(this.rmhInfo.rmhDesc) | ||
| 37 | .fontSize($r("app.float.font_size_12")) | 45 | .fontSize($r("app.float.font_size_12")) |
| 38 | .fontColor($r("app.color.color_B0B0B0")) | 46 | .fontColor($r("app.color.color_B0B0B0")) |
| 39 | - Image($r('app.media.point')) | ||
| 40 | - .width(16) | ||
| 41 | - .height(16) | 47 | + .maxLines(1) |
| 48 | + .alignSelf(ItemAlign.Start) | ||
| 49 | + .textOverflow({ overflow: TextOverflow.Ellipsis }) | ||
| 50 | + .textAlign(TextAlign.Start) | ||
| 42 | } | 51 | } |
| 43 | - Text(this.rmhInfo.rmhDesc) | ||
| 44 | - .fontSize($r("app.float.font_size_12")) | ||
| 45 | - .fontColor($r("app.color.color_B0B0B0")) | ||
| 46 | - .maxLines(1) | ||
| 47 | - .alignSelf(ItemAlign.Start) | ||
| 48 | - .textOverflow({ overflow: TextOverflow.Ellipsis }) | ||
| 49 | - .textAlign(TextAlign.Start) | ||
| 50 | - .width('70%') | 52 | + .width('75%') |
| 51 | } | 53 | } |
| 52 | } | 54 | } |
| 53 | 55 |
-
Please register or login to post a comment