Skip to content

Commit

Permalink
fixes for borderon second header level
Browse files Browse the repository at this point in the history
  • Loading branch information
nidaqg committed Dec 21, 2024
1 parent 7e319a6 commit 8bade6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@ export const TableHeaderCell = ({
header?.column.getLeafColumns().length === 1 &&
header?.column.getLeafColumns()[0].id === header.column.id

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

const cellId = `${loading ?
`loading-${header?.id}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const AdvancedTableColumnHeadersMultiple = (props) => {
label: "Attendance Rate",
},
{
accessor: "graduatedStudents",
label: "Graduated Students",
accessor: "scheduledMeetings",
label: "Scheduled Meetings",
},
],
},
Expand Down

0 comments on commit 8bade6e

Please sign in to comment.