Skip to content

feat(data explorer): make head row sticky MAR-1020 #929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,16 @@ function DataTable({ caseId, pivotObject, table, list, pagination, navigateTo }:
</MenuCommand.Menu>
) : null}
</div>
<div className="flex overflow-x-auto" ref={wrapperRef}>
<div className="flex max-h-[480px] overflow-auto" ref={wrapperRef}>
<div ref={sentinelRef} className="w-0" />
{list.length > 0 ? (
<table className="mb-4 min-w-full border-separate border-spacing-0">
<thead>
{reactTable.getHeaderGroups().map((headerGroup) => (
<tr key={headerGroup.id} className="text-grey-50 border-grey-90 h-10 text-left">
<tr
key={headerGroup.id}
className="text-grey-50 border-grey-90 bg-grey-100 sticky top-0 z-20 h-10 text-left"
>
<th
className={clsx(
'border-grey-90 bg-grey-100 sticky left-0 z-10 h-full border-y border-r p-2 font-normal',
Expand Down