Skip to content
Draft
Show file tree
Hide file tree
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 @@ -332,11 +332,11 @@ export function VirtualizedContent({
onScroll={handleVirtualScroll}
>
<div role='table' className={cx(styles.virtualTable, classNames.table)}>
<div ref={headerRef}>
<VirtualHeaders
headerGroups={headerGroups}
className={cx(styles.stickyHeader, classNames.header)}
/>
<div
ref={headerRef}
className={cx(styles.stickyHeader, classNames.header)}
>
<VirtualHeaders headerGroups={headerGroups} />
</div>
{stickyGroupHeader && isGrouped && stickyGroup && (
<div
Expand Down
7 changes: 5 additions & 2 deletions packages/raystack/components/data-table/data-table.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@
align-items: center;
background: var(--rs-color-background-base-secondary);
font-weight: var(--rs-font-weight-medium);
padding: var(--rs-space-3);
padding: 0 var(--rs-space-3);
height: var(--rs-space-10);
margin-bottom: calc(-1 * var(--rs-space-10));
box-sizing: border-box;
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
box-shadow: 0 1px 0 0 var(--rs-color-border-base-primary);
}
Expand All @@ -202,7 +205,7 @@
/* Non-virtualized: sticky section header under table header */
.stickySectionHeader {
position: sticky;
top: var(--rs-space-10);
top: var(--rs-space-8);
z-index: 1;
background: var(--rs-color-background-base-secondary);
box-shadow: 0 1px 0 0 var(--rs-color-border-base-primary);
Expand Down
Loading