Skip to content

Commit

Permalink
Details Panel: fixes table cells width -- #5
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtannus committed Nov 8, 2024
1 parent 63b6d99 commit 652d2ec
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/client/components/network-editor/data-details-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,32 +273,27 @@ const useGeneTableStyles = makeStyles((theme) => ({
},
inNetworkCell: {
borderLeft: 'none',
width: 40,
paddingLeft: '1px !important',
paddingRight: '1px !important',
textAlign: 'center',
},
rankCell: {
borderLeft: 'none',
minWidth: 48,
maxWidth: 68,
width: 60,
...userSelectTextProps,
},
nameCell: {
width: '95%',
maxWidth: 0,
...userSelectTextProps,
},
minOrthologousIdentityCell: {
width: '55%',
...userSelectTextProps,
},
maxFDRCell: {
width: '35%',
...userSelectTextProps,
},
includedCell: {
minWidth: 24,
maxWidth: 24,
width: 26,
textAlign: 'center',
},
}));
Expand Down Expand Up @@ -412,9 +407,9 @@ function GeneTable({ type, columns, data, defOrderBy, defOrder, motifOrTrackGene
case 'included':
return (
isInSelectedMotifOrTrack(row.name) ?
<IncludedIcon sx={{ color: (theme) => theme.palette.success.light, fontSize: 16, display: 'block' }} />
<IncludedIcon sx={{ color: (theme) => theme.palette.success.light, fontSize: 16, display: 'block', m: 'auto' }} />
:
<NotIncludedIcon sx={{ color: (theme) => theme.palette.text.disabled, opacity: 0.4, fontSize: 16, display: 'block' }} />
<NotIncludedIcon sx={{ color: (theme) => theme.palette.text.disabled, opacity: 0.4, fontSize: 16, display: 'block', m: 'auto' }} />
);
default:
return (
Expand Down

0 comments on commit 652d2ec

Please sign in to comment.