Skip to content

Commit

Permalink
fix: table border overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Jul 28, 2024
1 parent 23681b2 commit 0ff54ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/data-table/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function DataTable<TData>({
{...props}
>
{children}
<div className="rounded-md border">
<div className="overflow-hidden rounded-md border">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
Expand Down
2 changes: 1 addition & 1 deletion src/lib/data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function getCommonPinningStyles<TData>({
: undefined,
left: isPinned === "left" ? `${column.getStart("left")}px` : undefined,
right: isPinned === "right" ? `${column.getAfter("right")}px` : undefined,
opacity: isPinned ? 0.95 : 1,
opacity: isPinned ? 0.97 : 1,
position: isPinned ? "sticky" : "relative",
background: isPinned ? "hsl(var(--background))" : undefined,
width: column.getSize(),
Expand Down

0 comments on commit 0ff54ed

Please sign in to comment.