Showing
2 changed files
with
3 additions
and
2 deletions
| @@ -75,7 +75,8 @@ export struct Card4Component { | @@ -75,7 +75,8 @@ export struct Card4Component { | ||
| 75 | Span(this.contentDTO.newsTitle) | 75 | Span(this.contentDTO.newsTitle) |
| 76 | } | 76 | } |
| 77 | } | 77 | } |
| 78 | - .fontSize($r('app.float.font_size_18')) | 78 | + .fontSize(17.5) |
| 79 | + .lineHeight(27) | ||
| 79 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) | 80 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) |
| 80 | .maxLines(3) | 81 | .maxLines(3) |
| 81 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 82 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| @@ -117,7 +117,7 @@ struct localCard { | @@ -117,7 +117,7 @@ struct localCard { | ||
| 117 | .fontSize($r('app.float.font_size_18')) | 117 | .fontSize($r('app.float.font_size_18')) |
| 118 | .fontColor('#000000') | 118 | .fontColor('#000000') |
| 119 | .align(Alignment.TopStart) | 119 | .align(Alignment.TopStart) |
| 120 | - .maxLines(1) | 120 | + .maxLines(3) |
| 121 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 121 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 122 | .lineHeight(25) | 122 | .lineHeight(25) |
| 123 | .fontWeight(500) | 123 | .fontWeight(500) |
-
Please register or login to post a comment