File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/blade/src/components/Table Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,9 @@ const StyledReactTable = styled(ReactTable)<{
120
120
theme,
121
121
height : $styledProps ?. height ,
122
122
//Todo : virtualized table
123
- width : $styledProps ?. width ,
123
+ ...( $styledProps ?. isVirtualized && {
124
+ width : $styledProps ?. width ,
125
+ } ) ,
124
126
// auto is isVirtualized ? 'scroll' : 'auto',
125
127
} ) ;
126
128
const $isSelectable = true ;
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ import {
35
35
SelectTypes ,
36
36
} from '@table-library/react-table-library/select' ;
37
37
import { useRef } from 'react' ;
38
+ import { isBackgroundColorToken } from '../../../../../razorsharp/src/code/blade/utils/color' ;
39
+ import { getBackgroundColorToken } from '../../Button/BaseButton/BaseButton' ;
38
40
39
41
export default {
40
42
title : 'Components/Table' ,
@@ -123,7 +125,7 @@ const data: TableData<Item> = {
123
125
const TableTemplate : StoryFn < typeof TableComponent > = ( { ...args } ) => {
124
126
const tableRef = useRef < HTMLDivElement > ( null ) ;
125
127
return (
126
- < Box padding = "spacing.5" ref = { tableRef } >
128
+ < Box padding = "spacing.5" ref = { tableRef } height = "500px" >
127
129
< > total rows : { nodes . length } </ >
128
130
< TableComponent
129
131
{ ...args }
@@ -155,7 +157,7 @@ const TableTemplate: StoryFn<typeof TableComponent> = ({ ...args }) => {
155
157
{ ( tableData ) => (
156
158
< TableVirtulized
157
159
tableData = { tableData }
158
- rowHeight = { 57 }
160
+ rowHeight = { 59 }
159
161
// header={()=>{}}
160
162
header = { ( ) => (
161
163
< TableHeader >
You can’t perform that action at this time.
0 commit comments