Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nidaqg committed Dec 23, 2024
1 parent 8bade6e commit b8f1353
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,17 @@ export const TableHeaderCell = ({
const isLeafColumn =
header?.column.getLeafColumns().length === 1 &&
header?.column.getLeafColumns()[0].id === header.column.id

const isLastHeaderCell =
header?.column.parent?.columns.at(-1) === header?.column ||
(header?.colSpan > 1 && header?.column.parent !== undefined);

const cellClassName = classnames(
"table-header-cells",
`${isChrome() ? "chrome-styles" : ""}`,
`${enableSorting ? "table-header-cells-active" : ""}`,
{ "pinned-left": responsive === "scroll" && isPinnedLeft },
`${
header?.column.parent?.columns.at(-1) === header?.column ||
(header?.colSpan > 1 && header?.column.parent !== undefined)
? "last-header-cell"
: ""
}`
isLastHeaderCell ? "last-header-cell" : ""
);

const cellId = `${loading ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ const AdvancedTableColumnHeaders = (props) => {


return (
<div>
<>
<AdvancedTable
columnDefinitions={columnDefinitions}
tableData={MOCK_DATA}
{...props}
/>
</div>
</>
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ const AdvancedTableColumnHeadersMultiple = (props) => {
];

return (
<div>
<>
<AdvancedTable
columnDefinitions={columnDefinitions}
tableData={MOCK_DATA}
{...props}
/>
</div>
</>
);
};

Expand Down

0 comments on commit b8f1353

Please sign in to comment.