improvement: improve handling of expanded secret when table overflows

This commit is contained in:
Scott Wilson
2024-10-18 16:06:25 -07:00
parent de03692469
commit 84814a0012
3 changed files with 21 additions and 32 deletions
+5 -3
View File
@@ -1,4 +1,4 @@
import { HTMLAttributes, ReactNode, TdHTMLAttributes } from "react";
import { DetailedHTMLProps, HTMLAttributes, ReactNode, TdHTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
import { Skeleton } from "../Skeleton";
@@ -7,12 +7,13 @@ export type TableContainerProps = {
children: ReactNode;
isRounded?: boolean;
className?: string;
};
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
export const TableContainer = ({
children,
className,
isRounded = true
isRounded = true,
...props
}: TableContainerProps): JSX.Element => (
<div
className={twMerge(
@@ -20,6 +21,7 @@ export const TableContainer = ({
isRounded && "rounded-lg",
className
)}
{...props}
>
{children}
</div>