Showing
1 changed file
with
4 additions
and
2 deletions
| @@ -300,7 +300,8 @@ struct indicatorAnimations { | @@ -300,7 +300,8 @@ struct indicatorAnimations { | ||
| 300 | // .height(2) | 300 | // .height(2) |
| 301 | 301 | ||
| 302 | Image($r('app.media.swiper_indicator_gray')) | 302 | Image($r('app.media.swiper_indicator_gray')) |
| 303 | - .width('100%') | 303 | + .objectFit(ImageFit.Contain) |
| 304 | + .width('96%') | ||
| 304 | .height(2) | 305 | .height(2) |
| 305 | Image($r('app.media.swiper_indicator_white')) | 306 | Image($r('app.media.swiper_indicator_white')) |
| 306 | .width(this.leftW) | 307 | .width(this.leftW) |
| @@ -334,7 +335,8 @@ struct indicatorAnimations { | @@ -334,7 +335,8 @@ struct indicatorAnimations { | ||
| 334 | // .width('100%') | 335 | // .width('100%') |
| 335 | // .height(2) | 336 | // .height(2) |
| 336 | Image($r('app.media.swiper_indicator_gray')) | 337 | Image($r('app.media.swiper_indicator_gray')) |
| 337 | - .width('100%') | 338 | + .objectFit(ImageFit.Contain) |
| 339 | + .width('96%') | ||
| 338 | .height(2) | 340 | .height(2) |
| 339 | Image($r('app.media.swiper_indicator_white')) | 341 | Image($r('app.media.swiper_indicator_white')) |
| 340 | .width(this.rightW) | 342 | .width(this.rightW) |
-
Please register or login to post a comment