File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/ui-react/src/components/table Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -82,25 +82,29 @@ function Table<TData>(props: Props<TData>) {
82
82
83
83
return (
84
84
< >
85
- < pre style = { { minHeight : "10rem" } } >
85
+ < pre className = "mb-4 min-h-48" >
86
86
{ JSON . stringify (
87
87
{
88
- columnSizing : table . getState ( ) . columnSizing ,
88
+ // columnSizing: table.getState().columnSizing,
89
+ // columnSizeVars,
89
90
} ,
90
91
null ,
91
92
2 ,
92
93
) }
93
94
</ pre >
94
95
95
96
< Card
96
- className = { cn ( "p-0 inline-block" , className ) }
97
+ className = { cn ( "p-0 inline-block overflow-auto " , className ) }
97
98
{ ...otherProps }
98
99
variant = "light"
99
100
>
100
101
< table
101
102
style = { {
102
103
...columnSizeVars ,
103
- width : table . getTotalSize ( ) ,
104
+ width :
105
+ ( table . options . enableColumnResizing ?? true )
106
+ ? table . getTotalSize ( )
107
+ : "100%" ,
104
108
} }
105
109
>
106
110
< thead className = "border-b border-gray-300" >
You can’t perform that action at this time.
0 commit comments