Skip to content

Commit

Permalink
Re-introduce setting width for Table
Browse files Browse the repository at this point in the history
Was erroneously removed in #a1ef158
  • Loading branch information
swaterkamp committed Sep 18, 2018
1 parent 85a1156 commit 46f3abc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion gsa/src/web/components/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,20 @@ export default styled(Table)`
font-size: 12px;
text-align: left;
table-layout: ${props => props.fixed ? 'fixed' : 'auto'};
${props => {
const {size = 'full'} = props;
if (size === 'auto') {
return {};
}
if (size === 'full') {
return {
width: '100%',
};
}
return {
width: size,
};
}};
@media print {
border-collapse: collapse;
};
Expand Down

0 comments on commit 46f3abc

Please sign in to comment.