mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
start to improve dynamic dots
This commit is contained in:
@@ -38,3 +38,17 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</ion-footer>
|
</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> -->
|
||||||
|
|||||||
@@ -332,6 +332,16 @@ swiper-slide video {
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.preview-dot, .next-dot {
|
||||||
|
width: 7px; /* Reduced size for preview and next dots */
|
||||||
|
height: 7px; /* Reduced size for preview and next dots */
|
||||||
|
}
|
||||||
|
|
||||||
|
.small-dot {
|
||||||
|
width: 5px; /* Smallest size for dots */
|
||||||
|
height: 5px; /* Smallest size for dots */
|
||||||
|
}
|
||||||
|
|
||||||
.play-button {
|
.play-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
|||||||
@@ -28,15 +28,11 @@ export class SwiperPage implements OnInit {
|
|||||||
public checkFileType: checkFileTypeService,
|
public checkFileType: checkFileTypeService,
|
||||||
public stopvideoService: StopvideoService,
|
public stopvideoService: StopvideoService,
|
||||||
) {
|
) {
|
||||||
console.log('swieper', this.publicationList)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.log('swieper', this.publicationList)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onSlideChange() {
|
onSlideChange() {
|
||||||
|
|
||||||
console.log('onchage')
|
console.log('onchage')
|
||||||
|
|||||||
Reference in New Issue
Block a user