mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 09:51:51 +01:00
implement comment fixes
This commit is contained in:
parent
2bef75dd4a
commit
fbd683e0b5
@ -17,9 +17,10 @@ export function BrandPill(props: {
|
|||||||
>
|
>
|
||||||
<Icon className="text-xl" icon={Icons.MOVIE_WEB} />
|
<Icon className="text-xl" icon={Icons.MOVIE_WEB} />
|
||||||
<span
|
<span
|
||||||
className={`font-semibold text-white ${
|
className={[
|
||||||
props.hideTextOnMobile ? "hidden sm:block" : ""
|
"font-semibold text-white",
|
||||||
}`}
|
props.hideTextOnMobile ? "hidden sm:block" : "",
|
||||||
|
].join(" ")}
|
||||||
>
|
>
|
||||||
{t("global.name")}
|
{t("global.name")}
|
||||||
</span>
|
</span>
|
||||||
|
@ -10,7 +10,7 @@ interface SectionHeadingProps {
|
|||||||
|
|
||||||
export function SectionHeading(props: SectionHeadingProps) {
|
export function SectionHeading(props: SectionHeadingProps) {
|
||||||
return (
|
return (
|
||||||
<div className={`${props.className}`}>
|
<div className={props.className}>
|
||||||
<div className="mb-5 flex items-center">
|
<div className="mb-5 flex items-center">
|
||||||
<p className="flex flex-1 items-center font-bold uppercase text-denim-700">
|
<p className="flex flex-1 items-center font-bold uppercase text-denim-700">
|
||||||
{props.icon ? (
|
{props.icon ? (
|
||||||
|
@ -45,23 +45,26 @@ function MediaCardContent({
|
|||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={`relative mb-4 aspect-[2/3] w-full overflow-hidden rounded-xl bg-denim-500 bg-cover bg-center transition-[border-radius] duration-100 ${
|
className={[
|
||||||
closable ? "" : "group-hover:rounded-lg"
|
"relative mb-4 aspect-[2/3] w-full overflow-hidden rounded-xl bg-denim-500 bg-cover bg-center transition-[border-radius] duration-100",
|
||||||
}`}
|
closable ? "" : "group-hover:rounded-lg",
|
||||||
|
].join(" ")}
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: media.poster ? `url(${media.poster})` : undefined,
|
backgroundImage: media.poster ? `url(${media.poster})` : undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{series ? (
|
{series ? (
|
||||||
<div
|
<div
|
||||||
className={`absolute right-2 top-2 rounded-md bg-denim-200 py-1 px-2 transition-colors ${
|
className={[
|
||||||
closable ? "" : "group-hover:bg-denim-500"
|
"absolute right-2 top-2 rounded-md bg-denim-200 py-1 px-2 transition-colors",
|
||||||
}`}
|
closable ? "" : "group-hover:bg-denim-500",
|
||||||
|
].join(" ")}
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
className={`text-center text-xs font-bold text-slate-400 transition-colors ${
|
className={[
|
||||||
closable ? "" : "group-hover:text-white"
|
"text-center text-xs font-bold text-slate-400 transition-colors",
|
||||||
}`}
|
closable ? "" : "group-hover:text-white",
|
||||||
|
].join(" ")}
|
||||||
>
|
>
|
||||||
{t("seasons.seasonAndEpisode", {
|
{t("seasons.seasonAndEpisode", {
|
||||||
season: series.season,
|
season: series.season,
|
||||||
|
@ -54,7 +54,8 @@
|
|||||||
"findingBestVideo": "Finding the best video for you",
|
"findingBestVideo": "Finding the best video for you",
|
||||||
"noVideos": "Whoops, couldn't find any videos for you",
|
"noVideos": "Whoops, couldn't find any videos for you",
|
||||||
"loading": "Loading...",
|
"loading": "Loading...",
|
||||||
"backToHome": "Back",
|
"backToHome": "Back to home",
|
||||||
|
"backToHomeShort": "Back",
|
||||||
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
"seasonAndEpisode": "S{{season}} E{{episode}}",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"episodes": "Episodes",
|
"episodes": "Episodes",
|
||||||
|
@ -138,8 +138,8 @@ export function VideoPlayer(props: Props) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
{isMobile ? (
|
{isMobile ? (
|
||||||
<div className="flex w-full grid-cols-[56px,1fr,56px] items-center justify-between sm:grid">
|
<div className="grid w-full grid-cols-[56px,1fr,56px] items-center">
|
||||||
<div className="hidden sm:block" />
|
<div />
|
||||||
<div className="flex items-center justify-center">
|
<div className="flex items-center justify-center">
|
||||||
<CaptionsSelectionAction />
|
<CaptionsSelectionAction />
|
||||||
<SeriesSelectionAction />
|
<SeriesSelectionAction />
|
||||||
|
@ -9,6 +9,7 @@ import {
|
|||||||
import { AirplayAction } from "@/video/components/actions/AirplayAction";
|
import { AirplayAction } from "@/video/components/actions/AirplayAction";
|
||||||
import { ChromecastAction } from "@/video/components/actions/ChromecastAction";
|
import { ChromecastAction } from "@/video/components/actions/ChromecastAction";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { useIsMobile } from "@/hooks/useIsMobile";
|
||||||
|
|
||||||
interface VideoPlayerHeaderProps {
|
interface VideoPlayerHeaderProps {
|
||||||
media?: MWMediaMeta;
|
media?: MWMediaMeta;
|
||||||
@ -17,6 +18,7 @@ interface VideoPlayerHeaderProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function VideoPlayerHeader(props: VideoPlayerHeaderProps) {
|
export function VideoPlayerHeader(props: VideoPlayerHeaderProps) {
|
||||||
|
const { isMobile } = useIsMobile();
|
||||||
const { bookmarkStore, setItemBookmark } = useBookmarkContext();
|
const { bookmarkStore, setItemBookmark } = useBookmarkContext();
|
||||||
const isBookmarked = props.media
|
const isBookmarked = props.media
|
||||||
? getIfBookmarkedFromPortable(bookmarkStore.bookmarks, props.media)
|
? getIfBookmarkedFromPortable(bookmarkStore.bookmarks, props.media)
|
||||||
@ -34,7 +36,11 @@ export function VideoPlayerHeader(props: VideoPlayerHeaderProps) {
|
|||||||
className="flex cursor-pointer items-center py-1 text-white opacity-50 transition-opacity hover:opacity-100"
|
className="flex cursor-pointer items-center py-1 text-white opacity-50 transition-opacity hover:opacity-100"
|
||||||
>
|
>
|
||||||
<Icon className="mr-2" icon={Icons.ARROW_LEFT} />
|
<Icon className="mr-2" icon={Icons.ARROW_LEFT} />
|
||||||
<span>{t("videoPlayer.backToHome")}</span>
|
{isMobile ? (
|
||||||
|
<span>{t("videoPlayer.backToHomeShort")}</span>
|
||||||
|
) : (
|
||||||
|
<span>{t("videoPlayer.backToHome")}</span>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
{showDivider ? (
|
{showDivider ? (
|
||||||
|
@ -60,9 +60,10 @@ function PopoutContainer(props: { videoInterface: VideoInterfaceEvent }) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={`absolute z-10 grid w-80 grid-rows-[auto,minmax(0,1fr)] overflow-hidden rounded-lg bg-ash-200 ${
|
className={[
|
||||||
isMobile ? "h-[230px]" : " h-[500px]"
|
"absolute z-10 grid w-80 grid-rows-[auto,minmax(0,1fr)] overflow-hidden rounded-lg bg-ash-200",
|
||||||
}`}
|
isMobile ? "h-[230px]" : " h-[500px]",
|
||||||
|
].join(" ")}
|
||||||
style={{
|
style={{
|
||||||
right: `${right}px`,
|
right: `${right}px`,
|
||||||
bottom: `${bottom}px`,
|
bottom: `${bottom}px`,
|
||||||
|
@ -169,8 +169,6 @@ export function SourceSelectionPopout() {
|
|||||||
return entries;
|
return entries;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(embedsRes);
|
|
||||||
|
|
||||||
return embedsRes;
|
return embedsRes;
|
||||||
}, [scrapeResult?.embeds]);
|
}, [scrapeResult?.embeds]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user