start to improve dynamic dots

This commit is contained in:
Eudes Inácio
2024-04-17 11:49:07 +01:00
parent b92fe58a81
commit 1f90cc45ac
3 changed files with 24 additions and 4 deletions
+14
View File
@@ -38,3 +38,17 @@
</span>
</div>
</ion-footer>
<!-- <ion-footer>
<div *ngIf="publicationList.Files.length > 1" class="dots-container">
<span *ngFor="let files of publicationList.Files; let k = index"
[class.dotsSwiper]="true"
[class.active-dot]="swiperIndex === k"
[class.preview-dot]="swiperIndex === k - 1 || (swiperIndex === 0 && k === publicationList.Files.length - 1)"
[class.next-dot]="swiperIndex === k + 1 || (swiperIndex === publicationList.Files.length - 1 && k === 0)"
[class.small-dot]="publicationList.Files.length > 4 && (k < swiperIndex - 1 || k > swiperIndex + 1)"
(click)="goToSlide(k)"
>
</span>
</div>
</ion-footer> -->