yumaochao

fix: 标题过长省略

@@ -62,9 +62,11 @@ export struct Card4Component { @@ -62,9 +62,11 @@ export struct Card4Component {
62 .fontSize($r('app.float.font_size_18')) 62 .fontSize($r('app.float.font_size_18'))
63 .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) 63 .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222'))
64 .maxLines(3) 64 .maxLines(3)
65 - .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。  
66 -  
67 - 65 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  66 + .textIndent(this.contentDTO.newTags?.length < 5 && this.contentDTO.newTags?.length > 2 ? 58 :
  67 + (this.contentDTO.newTags?.length != 0 && this.contentDTO.newTags?.length) ||
  68 + this.contentDTO.objectType == '5' ? 30 : 0)
  69 + .alignContent(Alignment.TopStart)// 超出的部分显示省略号。
68 //三图 70 //三图
69 Stack(){ 71 Stack(){
70 Row() { 72 Row() {