can reset widths to default from the column settings menu

This commit is contained in:
Carter 2025-06-04 16:03:14 -06:00
parent 43b519ca37
commit 371185e8a5

View file

@ -684,9 +684,8 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
<MenuItem
onClick={() => filter(column.title)}
key={"column-list-"+index}
aria-label="Open User Settings"
dense
sx={{ marginLeft: -0.75 }}
sx={{ marginLeft: -0.75, paddingRight: 3 }}
>
<ListItemIcon>
<Checkbox
@ -697,6 +696,11 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
</MenuItem>
)
})}
<MenuItem onClick={() => setRowWidths([])}>
<Typography variant="body2" padding={1}>
Reset Widths
</Typography>
</MenuItem>
</Menu>
</TableContainer>
)