Преглед на файлове

fix: use overflow-clip in table paginations (#86)

Closes #78
Omar Houmz преди 1 година
родител
ревизия
c2be9ef616
променени са 2 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 4 1
      src/features/tasks/components/data-table-pagination.tsx
  2. 4 1
      src/features/users/components/data-table-pagination.tsx

+ 4 - 1
src/features/tasks/components/data-table-pagination.tsx

@@ -22,7 +22,10 @@ export function DataTablePagination<TData>({
   table,
 }: DataTablePaginationProps<TData>) {
   return (
-    <div className='flex items-center justify-between overflow-auto px-2'>
+    <div
+      className='flex items-center justify-between overflow-clip px-2'
+      style={{ overflowClipMargin: 1 }}
+    >
       <div className='hidden flex-1 text-sm text-muted-foreground sm:block'>
         {table.getFilteredSelectedRowModel().rows.length} of{' '}
         {table.getFilteredRowModel().rows.length} row(s) selected.

+ 4 - 1
src/features/users/components/data-table-pagination.tsx

@@ -22,7 +22,10 @@ export function DataTablePagination<TData>({
   table,
 }: DataTablePaginationProps<TData>) {
   return (
-    <div className='flex items-center justify-between overflow-auto px-2'>
+    <div
+      className='flex items-center justify-between overflow-clip px-2'
+      style={{ overflowClipMargin: 1 }}
+    >
       <div className='hidden flex-1 text-sm text-muted-foreground sm:block'>
         {table.getFilteredSelectedRowModel().rows.length} of{' '}
         {table.getFilteredRowModel().rows.length} row(s) selected.