MOBILE-3814 course: Section navigation buttons stuck at the bottom

main
Pau Ferrer Ocaña 2022-03-04 13:28:20 +01:00
parent d6006ac5c3
commit fa81717ccf
1 changed files with 15 additions and 15 deletions

View File

@ -24,21 +24,21 @@
<core-infinite-loading [enabled]="canLoadMore" (action)="showMoreActivities($event)"></core-infinite-loading> <core-infinite-loading [enabled]="canLoadMore" (action)="showMoreActivities($event)"></core-infinite-loading>
</div> </div>
<div collapsible-footer *ngIf="displayCourseIndex && (previousSection || nextSection)" slot="fixed">
<div class="ion-padding core-course-section-nav-buttons safe-area-padding-horizontal list-item-limited-width" <div class="core-course-section-nav-buttons safe-area-padding-horizontal list-item-limited-width">
*ngIf="displayCourseIndex && (previousSection || nextSection)"> <ion-button *ngIf="previousSection" (click)="sectionChanged(previousSection)" expand="block"
<ion-button *ngIf="previousSection" (click)="sectionChanged(previousSection)" expand="block" [attr.aria-label]="('core.previous' | translate) + ': ' + previousSection.name">
[attr.aria-label]="('core.previous' | translate) + ': ' + previousSection.name"> <ion-icon name="fas-arrow-left" slot="start" aria-hidden="true"></ion-icon>
<ion-icon name="fas-arrow-left" slot="start" aria-hidden="true"></ion-icon> <core-format-text [text]="previousSection.name" contextLevel="course" [contextInstanceId]="course.id">
<core-format-text [text]="previousSection.name" contextLevel="course" [contextInstanceId]="course.id"> </core-format-text>
</core-format-text> </ion-button>
</ion-button> <ion-button *ngIf="nextSection" (click)="sectionChanged(nextSection)" expand="block"
<ion-button *ngIf="nextSection" (click)="sectionChanged(nextSection)" expand="block" [attr.aria-label]="('core.next' | translate) + ': ' + nextSection.name">
[attr.aria-label]="('core.next' | translate) + ': ' + nextSection.name"> <core-format-text [text]="nextSection.name" contextLevel="course" [contextInstanceId]="course.id">
<core-format-text [text]="nextSection.name" contextLevel="course" [contextInstanceId]="course.id"> </core-format-text>
</core-format-text> <ion-icon name="fas-arrow-right" slot="end" aria-hidden="true"></ion-icon>
<ion-icon name="fas-arrow-right" slot="end" aria-hidden="true"></ion-icon> </ion-button>
</ion-button> </div>
</div> </div>
</core-loading> </core-loading>
</core-dynamic-component> </core-dynamic-component>