Skip to content

Commit

Permalink
fix: make pagination text consist on resize (#2689)
Browse files Browse the repository at this point in the history
Co-authored-by: Akshat Patel <[email protected]>
  • Loading branch information
kush-savani and Akshat55 authored Aug 28, 2023
1 parent b9d53e0 commit 355117b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pagination/pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export interface PaginationTranslations {
</svg>
</div>
</ng-container>
<span *ngIf="!pagesUnknown && totalDataLength <= 1" class="bx--pagination__text" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
<span *ngIf="!pagesUnknown && totalDataLength <= 1" class="bx--pagination__text bx--pagination__items-count" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
{{totalItemText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
</span>
<span *ngIf="!pagesUnknown && totalDataLength > 1" class="bx--pagination__text" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
<span *ngIf="!pagesUnknown && totalDataLength > 1" class="bx--pagination__text bx--pagination__items-count" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
{{totalItemsText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
</span>
<span *ngIf="pagesUnknown" class="bx--pagination__text" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
<span *ngIf="pagesUnknown" class="bx--pagination__text bx--pagination__items-count" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
{{totalItemsUnknownText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex } | async}}
</span>
</div>
Expand Down

0 comments on commit 355117b

Please sign in to comment.