Skip to content

Commit

Permalink
Mitigate column width issue
Browse files Browse the repository at this point in the history
  • Loading branch information
martha committed Jan 14, 2025
1 parent 2d0c890 commit 60f34c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/elements/table/GenericTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export const getStickyCellStyles = (
backgroundColor: 'background.paper', // Otherwise it's transparent and other cell content appears beneath it
position: 'sticky',
zIndex: 1,
maxWidth: '200px', // Mitigates the risk that the column may be so wide as to obscure any scrollable columns
overflow: 'clip',
};

// Pseudo-element to achieve a border on sticky cells. `position: sticky` doesn't work with regular border
Expand Down
1 change: 1 addition & 0 deletions src/modules/clientFiles/components/ClientFilesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const ClientFilesPage = () => {
render: (file) => (
<Typography variant='inherit'>{file.name}</Typography>
),
sticky: 'left',
},
{
header: 'File Tags',
Expand Down

0 comments on commit 60f34c3

Please sign in to comment.