fix: 20234 【uat】 进入热点,查看“英姿飒爽!武警女兵进行课目训练太帅了”卡片图片,卡片图片拉伸了,预期不拉申
Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -249,16 +249,16 @@ export struct Card10ComponentTimelineItem { | @@ -249,16 +249,16 @@ export struct Card10ComponentTimelineItem { | ||
| 249 | .backgroundColor(0xf5f5f5) | 249 | .backgroundColor(0xf5f5f5) |
| 250 | .width(117) | 250 | .width(117) |
| 251 | .height(78) | 251 | .height(78) |
| 252 | - .objectFit(ImageFit.Cover) | 252 | + .objectFit(ImageFit.Contain) |
| 253 | .borderRadius($r('app.float.image_border_radius')) | 253 | .borderRadius($r('app.float.image_border_radius')) |
| 254 | .borderStyle(BorderStyle.Solid) | 254 | .borderStyle(BorderStyle.Solid) |
| 255 | .borderWidth(0.5) | 255 | .borderWidth(0.5) |
| 256 | .borderColor($r('app.color.color_0D000000')) | 256 | .borderColor($r('app.color.color_0D000000')) |
| 257 | - .margin({ left: 12 }) | ||
| 258 | CardMediaInfo({ | 257 | CardMediaInfo({ |
| 259 | contentDTO: this.createMediaInfoContent(this.slideItem) | 258 | contentDTO: this.createMediaInfoContent(this.slideItem) |
| 260 | }) | 259 | }) |
| 261 | } | 260 | } |
| 261 | + .margin({ left: 12 }) | ||
| 262 | .alignContent(Alignment.BottomEnd) | 262 | .alignContent(Alignment.BottomEnd) |
| 263 | .height(78) | 263 | .height(78) |
| 264 | } else { | 264 | } else { |
-
Please register or login to post a comment