add tag line breaks

ref #65
This commit is contained in:
Collin M. Barrett 2018-09-03 10:13:08 -05:00
parent 36d1b5e792
commit d2f0b82558
2 changed files with 6 additions and 1 deletions

View file

@ -98,7 +98,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
filterMethod: (filter: any, row: any) => row[filter.id].map((e: any) => e.name).join()
.toUpperCase().includes(filter.value.toUpperCase()),
sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1,
Cell: (cell: any) => <div>{cell.value.map(
Cell: (cell: any) => <div className="fl-tag-container">{cell.value.map(
(e: any) => <span className="badge" style={{
backgroundColor: `#${e.colorHex}`,
color: ListDetails.getContrast(`${e.colorHex}`)

View file

@ -7,6 +7,11 @@ body, h2, h3, h4, h5, blockquote { font-size: 16px; }
align-items: center;
}
.fl-tag-container {
line-height: 1;
white-space: normal;
}
div.rt-tbody, div.rt-thead.-filters, div.rt-thead.-header { min-width: 320px !important; }
.fl-btn-details-action {