Skip to content

Commit 355117b

Browse files
fix: make pagination text consist on resize (#2689)
Co-authored-by: Akshat Patel <[email protected]>
1 parent b9d53e0 commit 355117b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pagination/pagination.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ export interface PaginationTranslations {
9191
</svg>
9292
</div>
9393
</ng-container>
94-
<span *ngIf="!pagesUnknown && totalDataLength <= 1" class="bx--pagination__text" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
94+
<span *ngIf="!pagesUnknown && totalDataLength <= 1" class="bx--pagination__text bx--pagination__items-count" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
9595
{{totalItemText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
9696
</span>
97-
<span *ngIf="!pagesUnknown && totalDataLength > 1" class="bx--pagination__text" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
97+
<span *ngIf="!pagesUnknown && totalDataLength > 1" class="bx--pagination__text bx--pagination__items-count" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
9898
{{totalItemsText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
9999
</span>
100-
<span *ngIf="pagesUnknown" class="bx--pagination__text" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
100+
<span *ngIf="pagesUnknown" class="bx--pagination__text bx--pagination__items-count" [ngStyle]="{'margin-left': showPageInput ? null : 0}">
101101
{{totalItemsUnknownText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex } | async}}
102102
</span>
103103
</div>

0 commit comments

Comments
 (0)