Skip to content

Commit 2b60871

Browse files
Fix table header sticky on scroll (#2842)
* [fix/2840]: remove overflow auto on table container * Add styled divs to maintain table story snapshot parity (#2850) Co-authored-by: Matt Seddon <[email protected]>
1 parent e357450 commit 2b60871

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

webview/src/experiments/components/table/styles.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ $bullet-size: calc(var(--design-unit) * 4px);
241241
padding-left: 1rem;
242242
}
243243
.tableContainer {
244-
overflow: auto;
245244
flex: 1;
246245
}
247246
.table {

webview/src/stories/Table.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ const Template: Story<{ tableData: TableDataState }> = ({ tableData }) => {
120120
reducer: experimentsReducers
121121
})}
122122
>
123-
<Experiments />
123+
<div style={{ height: '900px', overflow: 'auto' }}>
124+
<Experiments />
125+
</div>
124126
</Provider>
125127
)
126128
}
@@ -243,7 +245,7 @@ export const Scrolled: Story<{ tableData: TableDataState }> = ({
243245
reducer: experimentsReducers
244246
})}
245247
>
246-
<div style={{ height: 400, width: 600 }}>
248+
<div style={{ height: '400px', overflow: 'auto', width: '600px' }}>
247249
<Experiments />
248250
</div>
249251
</Provider>

0 commit comments

Comments
 (0)