瀏覽代碼

fix: overflow background in tables (#175)

Sat Naing 11 月之前
父節點
當前提交
a164b9e968
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/features/tasks/components/data-table.tsx
  2. 1 1
      src/features/users/components/users-table.tsx

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

@@ -66,7 +66,7 @@ export function DataTable<TData, TValue>({
   return (
     <div className='space-y-4'>
       <DataTableToolbar table={table} />
-      <div className='rounded-md border'>
+      <div className='overflow-hidden rounded-md border'>
         <Table>
           <TableHeader>
             {table.getHeaderGroups().map((headerGroup) => (

+ 1 - 1
src/features/users/components/users-table.tsx

@@ -69,7 +69,7 @@ export function UsersTable({ columns, data }: DataTableProps) {
   return (
     <div className='space-y-4'>
       <DataTableToolbar table={table} />
-      <div className='rounded-md border'>
+      <div className='overflow-hidden rounded-md border'>
         <Table>
           <TableHeader>
             {table.getHeaderGroups().map((headerGroup) => (