style(frontend): widen page indicator slot so "Page 79 of 79" fits

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sergey Kozyrenko
2026-05-21 00:19:29 +07:00
co-authored by Claude Opus 4.7
parent 385704dee4
commit de14bacb59
+2 -3
View File
@@ -561,8 +561,7 @@ function DataTable<TData, TValue = unknown>({
if (isPageControlled) {
if (externalPageIndex !== undefined) {
const externalOutOfRange = externalPageIndex < 0 || externalPageIndex > lastPageIndex;
const internalOutOfRange =
pagination.pageIndex < 0 || pagination.pageIndex > lastPageIndex;
const internalOutOfRange = pagination.pageIndex < 0 || pagination.pageIndex > lastPageIndex;
if (externalOutOfRange && internalOutOfRange && externalPageIndex !== lastPageIndex) {
onPageChange?.(lastPageIndex, { replace: true });
@@ -810,7 +809,7 @@ function DataTable<TData, TValue = unknown>({
</Select>
</div>
{pageCount > 0 ? (
<div className="flex items-center justify-center text-xs font-medium lg:w-20">
<div className="flex items-center justify-center text-xs font-medium lg:w-24">
Page {safePageIndex + 1} of {pageCount}
</div>
) : (