mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
[UI Work] Add Overview Artist Index View
This commit is contained in:
parent
f6fc78d927
commit
566ac1a9d3
41 changed files with 1337 additions and 138 deletions
|
@ -35,11 +35,10 @@ class CalendarPage extends Component {
|
|||
// Listeners
|
||||
|
||||
onMeasure = ({ width }) => {
|
||||
this.setState({ width }, () => {
|
||||
const days = Math.max(3, Math.min(7, Math.floor(width / MINIMUM_DAY_WIDTH)));
|
||||
console.log(`${width} || ${days}`);
|
||||
this.props.onDaysCountChange(days);
|
||||
});
|
||||
this.setState({ width });
|
||||
const days = Math.max(3, Math.min(7, Math.floor(width / MINIMUM_DAY_WIDTH)));
|
||||
|
||||
this.props.onDaysCountChange(days);
|
||||
}
|
||||
|
||||
onFilterMenuItemPress = (filterKey, unmonitored) => {
|
||||
|
@ -109,7 +108,11 @@ class CalendarPage extends Component {
|
|||
whitelist={['width']}
|
||||
onMeasure={this.onMeasure}
|
||||
>
|
||||
<CalendarConnector />
|
||||
{
|
||||
this.state.width > 0 ?
|
||||
<CalendarConnector /> :
|
||||
<div />
|
||||
}
|
||||
</Measure>
|
||||
|
||||
<Legend colorImpairedMode={colorImpairedMode} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue