Fixed: Better formatting of the author books page

pull/965/head
ta264 3 years ago
parent 8a7765c855
commit 427f76fbe0

@ -1,7 +1,5 @@
.title {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
white-space: nowrap;
}
.monitored {
@ -15,3 +13,21 @@
width: 100px;
}
.rating {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 100px;
}
.releaseDate {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 120px;
}
.pageCount {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 80px;
}

@ -154,7 +154,10 @@ class BookRow extends Component {
if (name === 'rating') {
return (
<TableRowCell key={name}>
<TableRowCell
key={name}
className={styles.rating}
>
{
<StarRating
rating={ratings.value}
@ -168,6 +171,7 @@ class BookRow extends Component {
if (name === 'releaseDate') {
return (
<RelativeDateCellConnector
className={styles.releaseDate}
key={name}
date={releaseDate}
/>
@ -178,6 +182,7 @@ class BookRow extends Component {
return (
<TableRowCell
key={name}
className={styles.pageCount}
>
{pageCount || ''}
</TableRowCell>

@ -38,10 +38,10 @@ export const defaultState = {
isVisible: true
},
{
name: 'position',
label: 'Number',
name: 'series',
label: 'Series',
isSortable: true,
isVisible: true
isVisible: false
},
{
name: 'releaseDate',
@ -50,26 +50,10 @@ export const defaultState = {
isVisible: true
},
{
name: 'secondaryTypes',
label: 'Secondary Types',
isSortable: true,
isVisible: false
},
{
name: 'mediumCount',
label: 'Media Count',
isVisible: false
},
{
name: 'bookCount',
label: 'Book Count',
isVisible: false
},
{
name: 'duration',
label: 'Duration',
name: 'pageCount',
label: 'Pages',
isSortable: true,
isVisible: false
isVisible: true
},
{
name: 'rating',

Loading…
Cancel
Save