Skip to content

Commit c2be9ef

Browse files
authored
fix: use overflow-clip in table paginations (#86)
Closes #78
1 parent 787b466 commit c2be9ef

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/features/tasks/components/data-table-pagination.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export function DataTablePagination<TData>({
2222
table,
2323
}: DataTablePaginationProps<TData>) {
2424
return (
25-
<div className='flex items-center justify-between overflow-auto px-2'>
25+
<div
26+
className='flex items-center justify-between overflow-clip px-2'
27+
style={{ overflowClipMargin: 1 }}
28+
>
2629
<div className='hidden flex-1 text-sm text-muted-foreground sm:block'>
2730
{table.getFilteredSelectedRowModel().rows.length} of{' '}
2831
{table.getFilteredRowModel().rows.length} row(s) selected.

src/features/users/components/data-table-pagination.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export function DataTablePagination<TData>({
2222
table,
2323
}: DataTablePaginationProps<TData>) {
2424
return (
25-
<div className='flex items-center justify-between overflow-auto px-2'>
25+
<div
26+
className='flex items-center justify-between overflow-clip px-2'
27+
style={{ overflowClipMargin: 1 }}
28+
>
2629
<div className='hidden flex-1 text-sm text-muted-foreground sm:block'>
2730
{table.getFilteredSelectedRowModel().rows.length} of{' '}
2831
{table.getFilteredRowModel().rows.length} row(s) selected.

0 commit comments

Comments
 (0)