mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
shrink h space used by langs in main grid
This commit is contained in:
parent
34c627593c
commit
500eed264c
2 changed files with 5 additions and 5 deletions
|
|
@ -56,16 +56,16 @@ export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsS
|
|||
Cell: (cell: any) => <h2 className="list-title">{cell.value}</h2>
|
||||
},
|
||||
{
|
||||
Header: "Languages",
|
||||
Header: "Langs.",
|
||||
accessor: "languages",
|
||||
filterable: true,
|
||||
filterMethod: (filter: any, row: any) => row[filter.id]
|
||||
.map((e: any) => e.name.concat(e.iso6391)).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((e: any) => e.name).join(", ")}</div>,
|
||||
Cell: (cell: any) => <div>{cell.value.map((e: any) => e.iso6391).join(", ")}</div>,
|
||||
style: { whiteSpace: "inherit" },
|
||||
width: 100,
|
||||
width: 60,
|
||||
headerClassName: "hidden-xs",
|
||||
className: "hidden-xs"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -63,14 +63,14 @@ function Description(props: any) {
|
|||
function Languages(props: any) {
|
||||
return props.languages.length > 0
|
||||
? props.languages.length > 1
|
||||
? <div className="visible-xs">
|
||||
? <div>
|
||||
<h3>Languages:</h3>
|
||||
<ul>
|
||||
{props.languages.map(
|
||||
(language: any) => <li>{language}</li>)}
|
||||
</ul>
|
||||
</div>
|
||||
: <div className="visible-xs">
|
||||
: <div>
|
||||
<h3>Language:</h3>
|
||||
<ul>
|
||||
{props.languages.map(
|
||||
|
|
|
|||
Loading…
Reference in a new issue