Showing
2 changed files
with
5 additions
and
1 deletions
| @@ -714,7 +714,7 @@ struct commentHeaderView { | @@ -714,7 +714,7 @@ struct commentHeaderView { | ||
| 714 | dialogBeforeJumpOtherPageAction: this.dialogBeforeJumpOtherPageAction | 714 | dialogBeforeJumpOtherPageAction: this.dialogBeforeJumpOtherPageAction |
| 715 | }).margin({ left: 60, right: 16 }) | 715 | }).margin({ left: 60, right: 16 }) |
| 716 | }.alignItems(HorizontalAlign.Start) | 716 | }.alignItems(HorizontalAlign.Start) |
| 717 | - .padding({bottom: 8}) | 717 | + .padding({bottom: 0}) |
| 718 | } | 718 | } |
| 719 | 719 | ||
| 720 | @Builder headerView() { | 720 | @Builder headerView() { |
| @@ -842,6 +842,7 @@ struct commentFooterView { | @@ -842,6 +842,7 @@ struct commentFooterView { | ||
| 842 | }) | 842 | }) |
| 843 | } | 843 | } |
| 844 | } | 844 | } |
| 845 | + // .alignItems(VerticalAlign.Bottom) | ||
| 845 | .justifyContent(FlexAlign.SpaceBetween) | 846 | .justifyContent(FlexAlign.SpaceBetween) |
| 846 | .width('100%') | 847 | .width('100%') |
| 847 | .height(30) | 848 | .height(30) |
| @@ -110,9 +110,12 @@ export struct CommentText { | @@ -110,9 +110,12 @@ export struct CommentText { | ||
| 110 | // this.maxLineMesssage = this.maxLineMesssage.slice(0, this.maxLineMesssage.length - 1) | 110 | // this.maxLineMesssage = this.maxLineMesssage.slice(0, this.maxLineMesssage.length - 1) |
| 111 | // } | 111 | // } |
| 112 | 112 | ||
| 113 | + // console.log(`XXXXXXXXXXGY:${thisTextWidth - maxLineTextWidth}`) | ||
| 113 | ///早晚报三行显示 展开功能显示末尾 | 114 | ///早晚报三行显示 展开功能显示末尾 |
| 114 | if (this.isMorningEveningPaper) { | 115 | if (this.isMorningEveningPaper) { |
| 115 | this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 7) | 116 | this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 7) |
| 117 | + } else if (thisTextWidth > maxLineTextWidth + 5) { | ||
| 118 | + this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 1) | ||
| 116 | } | 119 | } |
| 117 | break | 120 | break |
| 118 | } | 121 | } |
-
Please register or login to post a comment