🚑 Hotfix calendar and mobile responsiveness

This commit is contained in:
ajnart
2022-06-08 09:56:04 +02:00
parent 063a6447c0
commit f75da289c2
2 changed files with 6 additions and 8 deletions

View File

@@ -111,26 +111,24 @@ function DayComponent(props: any) {
props;
const [opened, setOpened] = useState(false);
const day = renderdate.toDateString();
const day = renderdate.getDate();
const readarrFiltered = readarrmedias.filter((media: any) => {
const date = new Date(media.releaseDate);
return date.toDateString() === day;
return date.toDateString() === renderdate.toDateString();
});
const lidarrFiltered = lidarrmedias.filter((media: any) => {
const date = new Date(media.releaseDate);
// Return true if the date is renerdate without counting hours and minutes
return date.toDateString() === day;
return date.toDateString() === renderdate.toDateString();
});
const sonarrFiltered = sonarrmedias.filter((media: any) => {
const date = new Date(media.airDateUtc);
return date.toDateString() === day;
return date.toDateString() === renderdate.toDateString();
});
const radarrFiltered = radarrmedias.filter((media: any) => {
const date = new Date(media.inCinemas);
// Return true if the date is renerdate without counting hours and minutes
return date.toDateString() === day;
return date.toDateString() === renderdate.toDateString();
});
if (
sonarrFiltered.length === 0 &&

View File

@@ -53,7 +53,7 @@ export function MediaDisplay(props: { media: IMedia }) {
alt={media.title}
/>
)}
<Group direction="column" style={{ minWidth: 450 }}>
<Group direction="column" style={{ minWidth: phone ? 450 : '65vw' }}>
<Group noWrap mr="sm" className={classes.overview}>
<Title order={3}>{media.title}</Title>
{media.imdbId && (