人民号-动态视频卡
1、2、左右边距改为 16 3、标题行高改为 25 4、标题与视频间距偏小改为8 https://docs.qq.com/doc/DUWtGWFF4SWFhQnRU
Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -87,6 +87,7 @@ export struct Card20Component { | @@ -87,6 +87,7 @@ export struct Card20Component { | ||
| 87 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) | 87 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) |
| 88 | .maxLines(3) | 88 | .maxLines(3) |
| 89 | .lineHeight(25) | 89 | .lineHeight(25) |
| 90 | + .margin({bottom:8}) | ||
| 90 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 | 91 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 |
| 91 | .align(Alignment.Start) | 92 | .align(Alignment.Start) |
| 92 | .textIndent((this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) > 2 && | 93 | .textIndent((this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) > 2 && |
| @@ -103,8 +104,8 @@ export struct Card20Component { | @@ -103,8 +104,8 @@ export struct Card20Component { | ||
| 103 | //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 | 104 | //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 |
| 104 | } | 105 | } |
| 105 | .padding({ | 106 | .padding({ |
| 106 | - left: 10, | ||
| 107 | - right: 10, | 107 | + left: 16, |
| 108 | + right: 16, | ||
| 108 | top: $r('app.float.card_comp_pagePadding_tb'), | 109 | top: $r('app.float.card_comp_pagePadding_tb'), |
| 109 | bottom: $r('app.float.card_comp_pagePadding_tb') | 110 | bottom: $r('app.float.card_comp_pagePadding_tb') |
| 110 | }) | 111 | }) |
-
Please register or login to post a comment