xugenyuan

ref |> 处理评论列表间距和展开展示一半问题

... ... @@ -714,7 +714,7 @@ struct commentHeaderView {
dialogBeforeJumpOtherPageAction: this.dialogBeforeJumpOtherPageAction
}).margin({ left: 60, right: 16 })
}.alignItems(HorizontalAlign.Start)
.padding({bottom: 8})
.padding({bottom: 0})
}
@Builder headerView() {
... ... @@ -842,6 +842,7 @@ struct commentFooterView {
})
}
}
// .alignItems(VerticalAlign.Bottom)
.justifyContent(FlexAlign.SpaceBetween)
.width('100%')
.height(30)
... ...
... ... @@ -110,9 +110,12 @@ export struct CommentText {
// this.maxLineMesssage = this.maxLineMesssage.slice(0, this.maxLineMesssage.length - 1)
// }
// console.log(`XXXXXXXXXXGY:${thisTextWidth - maxLineTextWidth}`)
///早晚报三行显示 展开功能显示末尾
if (this.isMorningEveningPaper) {
this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 7)
} else if (thisTextWidth > maxLineTextWidth + 5) {
this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 1)
}
break
}
... ...