diff --git a/src/FillSpace.jsx b/src/FillSpace.jsx index f05e3b5..68d4bbb 100644 --- a/src/FillSpace.jsx +++ b/src/FillSpace.jsx @@ -458,7 +458,7 @@ class FillSpace extends Component { const total = totalCount != null ? Number(totalCount) : list.length; const rawUnfiltered = propUnfilteredTotal ?? unfilteredCount; const unfilteredTotal = rawUnfiltered != null ? Number(rawUnfiltered) : null; - const fullTotal = unfilteredTotal != null ? unfilteredTotal : Math.max(this.maxSeenCount || 0, total); + const fullTotal = unfilteredTotal != null ? Math.max(unfilteredTotal, total) : Math.max(this.maxSeenCount || 0, total); const needsPaginationContainer = fullTotal > pageSize; const showPaginationControls = total > pageSize; const pageCount = Math.max(1, Math.ceil(total / Math.max(1, pageSize))); @@ -502,7 +502,6 @@ class FillSpace extends Component { sx={{ mb: 1, height: 44, overflow: 'hidden' }} > - {total === 0 ? '0' : `${offset + 1}–${Math.min(offset + pageSize, total)}`} von{' '} - {total} + {total === 0 + ? (unfilteredTotal != null && unfilteredTotal > 0 + ? `0 von ${total} (${unfilteredTotal} gesamt)` + : '0') + : `${offset + 1}–${Math.min(offset + pageSize, total)} von ${total}${ + unfilteredTotal != null && unfilteredTotal > total + ? ` (${unfilteredTotal} gesamt)` + : '' + }`}