Skip to content

Commit cdbe7e3

Browse files
committed
fix: row bottom not visible with rowHeight
1 parent b7105ab commit cdbe7e3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/blade/src/components/Table/Table.web.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ const StyledReactTable = styled(ReactTable)<{
120120
theme,
121121
height: $styledProps?.height,
122122
//Todo : virtualized table
123-
width: $styledProps?.width,
123+
...($styledProps?.isVirtualized && {
124+
width: $styledProps?.width,
125+
}),
124126
// auto is isVirtualized ? 'scroll' : 'auto',
125127
});
126128
const $isSelectable = true;

packages/blade/src/components/Table/docs/BasicTable.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ import {
3535
SelectTypes,
3636
} from '@table-library/react-table-library/select';
3737
import { useRef } from 'react';
38+
import { isBackgroundColorToken } from '../../../../../razorsharp/src/code/blade/utils/color';
39+
import { getBackgroundColorToken } from '../../Button/BaseButton/BaseButton';
3840

3941
export default {
4042
title: 'Components/Table',
@@ -123,7 +125,7 @@ const data: TableData<Item> = {
123125
const TableTemplate: StoryFn<typeof TableComponent> = ({ ...args }) => {
124126
const tableRef = useRef<HTMLDivElement>(null);
125127
return (
126-
<Box padding="spacing.5" ref={tableRef}>
128+
<Box padding="spacing.5" ref={tableRef} height="500px">
127129
<> total rows : {nodes.length}</>
128130
<TableComponent
129131
{...args}
@@ -155,7 +157,7 @@ const TableTemplate: StoryFn<typeof TableComponent> = ({ ...args }) => {
155157
{(tableData) => (
156158
<TableVirtulized
157159
tableData={tableData}
158-
rowHeight={57}
160+
rowHeight={59}
159161
// header={()=>{}}
160162
header={() => (
161163
<TableHeader>

0 commit comments

Comments
 (0)