mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-13 08:35:08 +01:00
some bugfixes
This commit is contained in:
parent
52e8132cce
commit
340fbc94e8
@ -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"
|
||||||
|
@ -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";
|
||||||
|
@ -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={
|
||||||
|
Loading…
Reference in New Issue
Block a user