Skip to content

Commit 55b9712

Browse files
committed
simplify by changing grid to flex
1 parent 55d90c1 commit 55b9712

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

catalog/app/containers/Search/Table/Table.tsx

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,11 +1090,11 @@ const useColumnHeadStyles = M.makeStyles((t) => ({
10901090
},
10911091
actions: {
10921092
color: t.palette.text.hint,
1093+
display: 'flex',
1094+
flexDirection: 'inherit',
10931095
transition: t.transitions.create('color'),
1094-
display: 'grid',
1095-
gridAutoFlow: 'column',
1096-
gridColumnGap: '2px',
10971096
},
1097+
button: {},
10981098
title: {
10991099
...t.typography.subtitle1,
11001100
fontWeight: 500,
@@ -1104,26 +1104,18 @@ const useColumnHeadStyles = M.makeStyles((t) => ({
11041104
'& $title': {
11051105
marginLeft: t.spacing(1),
11061106
},
1107-
'& $open': {
1108-
gridColumn: 2,
1109-
},
1110-
'& $hide': {
1111-
gridColumn: 1,
1107+
'& $button + $button': {
1108+
marginRight: '2px',
11121109
},
11131110
},
11141111
inherit: {
11151112
'& $actions': {
11161113
marginLeft: t.spacing(1),
11171114
},
1118-
'& $open': {
1119-
gridColumn: 1,
1120-
},
1121-
'& $hide': {
1122-
gridColumn: 2,
1115+
'& $button + $button': {
1116+
marginLeft: '2px',
11231117
},
11241118
},
1125-
open: {},
1126-
hide: {},
11271119
}))
11281120

11291121
interface ColumnHeadProps {
@@ -1144,8 +1136,8 @@ function ColumnHead({ column, single }: ColumnHeadProps) {
11441136
</M.Tooltip>
11451137
</p>
11461138
<div className={classes.actions}>
1147-
<ColumnHeadOpen column={column} className={classes.open} />
1148-
{!single && <ColumnHeadHide column={column} className={classes.hide} />}
1139+
<ColumnHeadOpen column={column} className={classes.button} />
1140+
{!single && <ColumnHeadHide column={column} className={classes.button} />}
11491141
</div>
11501142
</div>
11511143
)

0 commit comments

Comments
 (0)