Newznab Work

This commit is contained in:
Qstick
2020-11-20 02:42:36 -05:00
parent 8e72c7153d
commit b586b6ac1c
26 changed files with 325 additions and 160 deletions

View File

@@ -3,16 +3,20 @@ import React from 'react';
import Label from 'Components/Label';
function CategoryLabel({ categories }) {
let catName = '';
if (categories && categories.length > 0) {
catName = categories[0].name;
}
const sortedCategories = categories.sort((c) => c.id);
return (
<Label>
{catName}
</Label>
<span>
{
sortedCategories.map((category) => {
return (
<Label key={category.name}>
{category.name}
</Label>
);
})
}
</span>
);
}

View File

@@ -10,7 +10,12 @@
flex: 4 0 110px;
}
.category,
.category {
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';
flex: 0 0 110px;
}
.indexer {
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';

View File

@@ -17,7 +17,12 @@
flex: 4 0 110px;
}
.category,
.category {
composes: cell;
flex: 0 0 110px;
}
.indexer {
composes: cell;