mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
some bugfixes
This commit is contained in:
parent
52e8132cce
commit
340fbc94e8
3 changed files with 6 additions and 5 deletions
|
@ -104,7 +104,7 @@ export const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
|
|||
/>
|
||||
</ButtonControl>
|
||||
<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
|
||||
? "block max-h-60 opacity-100"
|
||||
: "invisible max-h-0 opacity-0"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
import { IconButton } from "components/buttons/IconButton";
|
||||
import { Dropdown } from "components/Dropdown";
|
||||
import { Icons } from "components/Icon";
|
||||
import { Episode } from "components/media/EpisodeButton";
|
||||
import { useLoading } from "hooks/useLoading";
|
||||
import { serializePortableMedia } from "hooks/usePortableMedia";
|
||||
|
|
|
@ -17,6 +17,7 @@ import {
|
|||
convertPortableToMedia,
|
||||
getProviderFromId,
|
||||
MWMediaProvider,
|
||||
MWMediaType,
|
||||
} from "providers";
|
||||
import { ReactElement, useEffect, useState } from "react";
|
||||
import { useHistory } from "react-router-dom";
|
||||
|
@ -92,7 +93,9 @@ function StyledMediaFooter(props: StyledMediaFooterProps) {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<Seasons media={props.media} />
|
||||
{props.media.mediaType !== MWMediaType.MOVIE ? (
|
||||
<Seasons media={props.media} />
|
||||
) : null}
|
||||
</Paper>
|
||||
);
|
||||
}
|
||||
|
@ -150,7 +153,7 @@ function MediaViewContent(props: { portable: MWPortableMedia }) {
|
|||
let footerContent: ReactElement | null = null;
|
||||
if (loadingPortable) footerContent = <LoadingMediaFooter />;
|
||||
else if (errorPortable) footerContent = <LoadingMediaFooter error />;
|
||||
else if (mediaPortable && media && streamUrl)
|
||||
else if (mediaPortable && media)
|
||||
footerContent = (
|
||||
<StyledMediaFooter
|
||||
provider={
|
||||
|
|
Loading…
Reference in a new issue