Skip to content

Commit

Permalink
Merge pull request #2717 from JavierUhagon/pintableHead
Browse files Browse the repository at this point in the history
Pin the headers to the top of the window
  • Loading branch information
cyberw committed May 21, 2024
2 parents 58515c4 + 33dc65d commit 564bfa8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions locust/webui/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,21 @@ export default function Table<Row extends Record<string, any> = Record<string, s
});

return (
<TableContainer component={Paper}>
<TableContainer
component={Paper}
sx={{
overflowX: 'visible',
}}
>
<MuiTable>
<TableHead>
<TableHead
sx={{
position: 'sticky',
top: 0,
zIndex: 2,
backgroundColor: 'background.paper',
}}
>
<TableRow>
{structure.map(({ title, key }) => (
<TableCell
Expand Down

0 comments on commit 564bfa8

Please sign in to comment.