Showing
3 changed files
with
13 additions
and
12 deletions
| @@ -195,19 +195,20 @@ export struct RmhTitle { | @@ -195,19 +195,20 @@ export struct RmhTitle { | ||
| 195 | 195 | ||
| 196 | Blank() | 196 | Blank() |
| 197 | if (this.rmhInfo?.cnIsAttention) { | 197 | if (this.rmhInfo?.cnIsAttention) { |
| 198 | - Row() { | ||
| 199 | - if (Number(this.followStatus) === 0) { | ||
| 200 | - Image($r('app.media.rmh_follow')) | ||
| 201 | - .width(16) | ||
| 202 | - .height(16) | ||
| 203 | - } | 198 | + Column() { |
| 199 | + Row(){ | ||
| 200 | + if (Number(this.followStatus) === 0) { | ||
| 201 | + Image($r('app.media.rmh_follow')) | ||
| 202 | + .width(16) | ||
| 203 | + .height(16) | ||
| 204 | + } | ||
| 204 | 205 | ||
| 205 | - Text(Number(this.followStatus) === 0 ? '关注' : '已关注') | ||
| 206 | - .fontSize($r('app.float.font_size_13')) | ||
| 207 | - .fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6) | 206 | + Text(Number(this.followStatus) === 0 ? '关注' : '已关注') |
| 207 | + .fontSize($r('app.float.font_size_13')) | ||
| 208 | + .fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6) | ||
| 209 | + }.margin({top:4}) | ||
| 208 | } | 210 | } |
| 209 | .flexShrink(0) | 211 | .flexShrink(0) |
| 210 | - .alignSelf(ItemAlign.Center) | ||
| 211 | .onClick(() => { | 212 | .onClick(() => { |
| 212 | this.handleAccention(); | 213 | this.handleAccention(); |
| 213 | }) | 214 | }) |
| @@ -86,7 +86,7 @@ export struct Card14Component { | @@ -86,7 +86,7 @@ export struct Card14Component { | ||
| 86 | .height(78) | 86 | .height(78) |
| 87 | .borderRadius($r('app.float.image_border_radius')) | 87 | .borderRadius($r('app.float.image_border_radius')) |
| 88 | .border({ | 88 | .border({ |
| 89 | - width: 1, | 89 | + width: 0.5, |
| 90 | color: '#0D000000' | 90 | color: '#0D000000' |
| 91 | }) | 91 | }) |
| 92 | .borderStyle(BorderStyle.Solid) | 92 | .borderStyle(BorderStyle.Solid) |
| @@ -124,7 +124,7 @@ export struct Card6Component { | @@ -124,7 +124,7 @@ export struct Card6Component { | ||
| 124 | .borderRadius(5) | 124 | .borderRadius(5) |
| 125 | .aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4) | 125 | .aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4) |
| 126 | .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 78 : 156) | 126 | .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 78 : 156) |
| 127 | - .border({width: 1, color: 0xf5f5f5}) | 127 | + .border({width: 0.5, color: 0xf5f5f5}) |
| 128 | .borderStyle(BorderStyle.Solid) | 128 | .borderStyle(BorderStyle.Solid) |
| 129 | CardMediaInfo({ contentDTO: this.contentDTO }) | 129 | CardMediaInfo({ contentDTO: this.contentDTO }) |
| 130 | } | 130 | } |
-
Please register or login to post a comment