some bugfixes

This commit is contained in:
mrjvs 2022-03-06 18:45:34 +01:00
parent 52e8132cce
commit 340fbc94e8
3 changed files with 6 additions and 5 deletions

View File

@ -104,7 +104,7 @@ export const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
/> />
</ButtonControl> </ButtonControl>
<div <div
className={`bg-denim-300 options-scrollbar absolute top-0 z-10 w-full overflow-y-auto rounded-[20px] pt-[40px] transition-all duration-200 ${ className={`bg-denim-300 scrollbar scrollbar-thumb-gray-900 scrollbar-track-gray-100 absolute top-0 z-10 w-full overflow-y-auto rounded-[20px] pt-[40px] transition-all duration-200 ${
props.open props.open
? "block max-h-60 opacity-100" ? "block max-h-60 opacity-100"
: "invisible max-h-0 opacity-0" : "invisible max-h-0 opacity-0"

View File

@ -1,6 +1,4 @@
import { IconButton } from "components/buttons/IconButton";
import { Dropdown } from "components/Dropdown"; import { Dropdown } from "components/Dropdown";
import { Icons } from "components/Icon";
import { Episode } from "components/media/EpisodeButton"; import { Episode } from "components/media/EpisodeButton";
import { useLoading } from "hooks/useLoading"; import { useLoading } from "hooks/useLoading";
import { serializePortableMedia } from "hooks/usePortableMedia"; import { serializePortableMedia } from "hooks/usePortableMedia";

View File

@ -17,6 +17,7 @@ import {
convertPortableToMedia, convertPortableToMedia,
getProviderFromId, getProviderFromId,
MWMediaProvider, MWMediaProvider,
MWMediaType,
} from "providers"; } from "providers";
import { ReactElement, useEffect, useState } from "react"; import { ReactElement, useEffect, useState } from "react";
import { useHistory } from "react-router-dom"; import { useHistory } from "react-router-dom";
@ -92,7 +93,9 @@ function StyledMediaFooter(props: StyledMediaFooterProps) {
/> />
</div> </div>
</div> </div>
<Seasons media={props.media} /> {props.media.mediaType !== MWMediaType.MOVIE ? (
<Seasons media={props.media} />
) : null}
</Paper> </Paper>
); );
} }
@ -150,7 +153,7 @@ function MediaViewContent(props: { portable: MWPortableMedia }) {
let footerContent: ReactElement | null = null; let footerContent: ReactElement | null = null;
if (loadingPortable) footerContent = <LoadingMediaFooter />; if (loadingPortable) footerContent = <LoadingMediaFooter />;
else if (errorPortable) footerContent = <LoadingMediaFooter error />; else if (errorPortable) footerContent = <LoadingMediaFooter error />;
else if (mediaPortable && media && streamUrl) else if (mediaPortable && media)
footerContent = ( footerContent = (
<StyledMediaFooter <StyledMediaFooter
provider={ provider={