mirror of
https://github.com/Radarr/Radarr
synced 2026-04-30 13:51:15 +02:00
Fixed: Calendar's agenda on mobile
This commit is contained in:
parent
5517e578b6
commit
6fb127235c
3 changed files with 4 additions and 5 deletions
|
|
@ -42,9 +42,9 @@ function Agenda(props) {
|
|||
<div className={styles.agenda}>
|
||||
{
|
||||
items.map((item, index) => {
|
||||
const momentDate = moment(item.inCinemas);
|
||||
const momentDate = moment(item.sortDate);
|
||||
const showDate = index === 0 ||
|
||||
!moment(items[index - 1].inCinemas).isSame(momentDate, 'day');
|
||||
!moment(items[index - 1].sortDate).isSame(momentDate, 'day');
|
||||
|
||||
return (
|
||||
<AgendaEventConnector
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
}
|
||||
|
||||
@media only screen and (max-width: $breakpointSmall) {
|
||||
.event {
|
||||
.overlay {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
|
@ -111,5 +111,4 @@
|
|||
.releaseIcon {
|
||||
margin-right: 20px;
|
||||
width: 25px;
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class AgendaEvent extends Component {
|
|||
|
||||
<div className={styles.overlay}>
|
||||
<div className={styles.date}>
|
||||
{(showDate) ? startTime.format(longDateFormat) : null}
|
||||
{showDate ? startTime.format(longDateFormat) : null}
|
||||
</div>
|
||||
|
||||
<div className={styles.releaseIcon}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue