Skip to content

Commit f5b6227

Browse files
author
Amrit Borah
committed
fix: style of empty div
1 parent 725d754 commit f5b6227

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Shared/Components/Table/TableContent.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,12 @@ const TableContent = <
437437
{isAnyRowExpandable &&
438438
(isExpandedRow || (!(row as RowType<RowData>).expandableRows && !rowStartIconConfig)) && (
439439
<div
440-
className={`dc__position-rel expanded-tree-line ${expandBtnOrRowStartIconGutterStickyConfig.className}`}
441-
style={{ left: expandBtnOrRowStartIconGutterStickyConfig.left }}
440+
{...(isExpandedRow
441+
? {
442+
style: { left: expandBtnOrRowStartIconGutterStickyConfig.left },
443+
className: `dc__position-rel expanded-tree-line ${expandBtnOrRowStartIconGutterStickyConfig.className}`,
444+
}
445+
: {})}
442446
/>
443447
)}
444448

0 commit comments

Comments
 (0)