fix: fixes organization table UI flickers and adds sticky search & filter + table header (#11711)
* fix: #11213, #11215 * Update packages/ui/components/data-table/DataTableToolbar.tsx --------- Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
1 parent
bba52db02f
commit
e7543c10a9
3 files changed
+10
-18
No files matched your search
@@ -4,7 +4,7 @@ import { classNames } from "@calcom/lib";
|
||||
|
||||
const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
|
||||
({ className, ...props }, ref) => (
|
||||
<div className="w-full overflow-auto">
|
||||
<div className="w-full overflow-auto md:overflow-visible">
|
||||
<table ref={ref} className={classNames("w-full caption-bottom text-sm", className)} {...props} />
|
||||
</div>
|
||||
)
|
||||
@@ -13,7 +13,11 @@ Table.displayName = "Table";
|
||||
|
||||
const TableHeader = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
|
||||
({ className, ...props }, ref) => (
|
||||
<thead ref={ref} className={classNames("[&_tr]:bg-subtle [&_tr]:border-b", className)} {...props} />
|
||||
<thead
|
||||
ref={ref}
|
||||
className={classNames("[&_tr]:bg-subtle md:sticky md:top-[4.25rem] md:z-10 [&_tr]:border-b", className)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
);
|
||||
TableHeader.displayName = "TableHeader";
|
||||
|
||||
Reference in new issue
Block a user