Fixed: Simplify categories in History Table

This commit is contained in:
Qstick
2021-04-18 21:03:36 -04:00
parent 0454e547ac
commit 2938029400
4 changed files with 28 additions and 18 deletions

View File

@@ -4,30 +4,22 @@
width: 120px;
}
.elapsedTime,
.indexer {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 150px;
}
.categories,
.source,
.date,
.releaseGroup {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 110px;
}
.categories {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 110px;
}
.source {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 110px;
}
.details {
composes: cell from '~Components/Table/Cells/TableRowCell.css';

View File

@@ -5,6 +5,7 @@ import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellCo
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow';
import { icons } from 'Helpers/Props';
import CapabilitiesLabel from 'Indexer/Index/Table/CapabilitiesLabel';
import HistoryDetailsModal from './Details/HistoryDetailsModal';
import HistoryEventTypeCell from './HistoryEventTypeCell';
import HistoryRowParameter from './HistoryRowParameter';
@@ -254,7 +255,10 @@ class HistoryRow extends Component {
>
{
data.categories ?
data.categories :
<CapabilitiesLabel
capabilities={indexer.capabilities}
categoryFilter={data.categories.split(',').map(Number)}
/> :
null
}
</TableRowCell>
@@ -291,7 +295,7 @@ class HistoryRow extends Component {
return (
<TableRowCell
key={name}
className={styles.indexer}
className={styles.elapsedTime}
>
{
data.elapsedTime ?
@@ -307,6 +311,7 @@ class HistoryRow extends Component {
<RelativeDateCellConnector
key={name}
date={date}
className={styles.date}
/>
);
}

View File

@@ -11,6 +11,7 @@
.info {
padding: 0 4px;
white-space: nowrap;
}
.value {