mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-09-18 00:05:38 +00:00
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:
co-authored by
Claude Opus 4.7
parent
385704dee4
commit
de14bacb59
@@ -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>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user