mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 21:12:43 +02:00
Newznab Work
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -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';
|
||||
|
||||
|
@@ -17,7 +17,12 @@
|
||||
flex: 4 0 110px;
|
||||
}
|
||||
|
||||
.category,
|
||||
.category {
|
||||
composes: cell;
|
||||
|
||||
flex: 0 0 110px;
|
||||
}
|
||||
|
||||
.indexer {
|
||||
composes: cell;
|
||||
|
||||
|
Reference in New Issue
Block a user