Skip to content

Commit a95480d

Browse files
Sean PrashadSean Prashad
authored andcommitted
Ensure icons don't overflow within table column
1 parent 4f6ffbc commit a95480d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

web/src/components/Table/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ const Table = () => {
5151
Header: 'Companies',
5252
accessor: 'companies',
5353
Cell: cellInfo => {
54-
return cellInfo.row.original.companies.map(company => {
54+
const companies = cellInfo.row.original.companies.map(company => {
5555
const icon = images(`./${company}.png`);
5656
return (
5757
<span key={company} title={company}>
5858
<img src={icon} alt={company} />
5959
</span>
6060
);
6161
});
62+
63+
return <Row className="companies">{companies}</Row>;
6264
},
6365
disableSortBy: true,
6466
},

web/src/components/Table/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@
2424
.hard {
2525
background-color: #d9534f;
2626
}
27+
28+
.companies {
29+
justify-content: space-evenly;
30+
margin: 0;
31+
}
2732
}

0 commit comments

Comments
 (0)