diff --git a/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.styles.ts b/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.styles.ts index 6eefb52943..c9ee0f1777 100644 --- a/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.styles.ts +++ b/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.styles.ts @@ -2,13 +2,10 @@ import { makeStyles } from '@material-ui/core/styles'; export const useStyles = makeStyles(theme => ({ tableCellHeaderSortable: { + padding: 0, + position: 'relative', cursor: 'pointer', - '&:hover': { - backgroundColor: theme.v2.palette.grey[40], - '& > svg': { - color: theme.v2.palette.grey[90], - }, - }, + overflow: 'hidden', '& > svg': { fontSize: theme.v2.fontSizes.headerIcon, verticalAlign: 'middle', @@ -24,8 +21,22 @@ export const useStyles = makeStyles(theme => ({ }, sortButton: { all: 'unset', + padding: theme.spacing(2), + width: '100%', '&:focus-visible, &:active': { outline: 'revert', }, + display: 'flex', + alignItems: 'center', + '&:hover': { + backgroundColor: theme.v2.palette.grey[40], + '& > svg': { + color: theme.v2.palette.grey[90], + }, + }, + }, + icon: { + marginLeft: theme.spacing(0.5), + fontSize: theme.v2.fontSizes.headerIcon, }, })); diff --git a/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.tsx b/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.tsx index 2d8f7054ce..88dfcbac04 100644 --- a/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.tsx +++ b/frontend/src/component/common/Table/TableCellSortable/TableCellSortable.tsx @@ -60,18 +60,33 @@ export const TableCellSortable = ({ - } - elseShow={} - /> - } - elseShow={} - /> ); };