mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-17 06:24:32 +00:00
disable overflow on header row for tables
This commit is contained in:
@@ -413,7 +413,7 @@ export function ControlledDataTable<TData, TValue>({
|
|||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div className="overflow-x-auto">
|
<div className="overflow-x-auto overflow-y-hidden">
|
||||||
<Table>
|
<Table>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
{table.getHeaderGroups().map((headerGroup) => (
|
{table.getHeaderGroups().map((headerGroup) => (
|
||||||
|
|||||||
@@ -695,7 +695,7 @@ export function DataTable<TData, TValue>({
|
|||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div className="overflow-x-auto">
|
<div className="overflow-x-auto overflow-y-hidden">
|
||||||
<Table>
|
<Table>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
{table.getHeaderGroups().map((headerGroup) => (
|
{table.getHeaderGroups().map((headerGroup) => (
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const Table = React.forwardRef<
|
|||||||
>(({ className, sticky, ...props }, ref) => (
|
>(({ className, sticky, ...props }, ref) => (
|
||||||
<div
|
<div
|
||||||
className={cn("relative w-full", {
|
className={cn("relative w-full", {
|
||||||
"overflow-auto": !sticky
|
"overflow-x-auto overflow-y-hidden": !sticky
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<table
|
<table
|
||||||
|
|||||||
Reference in New Issue
Block a user