mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
refactor: set release poster to center on release page on mobile
BREAKING: disable all image rendering
This commit is contained in:
parent
b79c07f4c2
commit
d2b38dcbe2
3 changed files with 36 additions and 13 deletions
|
@ -2,18 +2,21 @@ import { ReleaseLink169 } from "./ReleaseLink.16_9FullImage";
|
|||
import { ReleaseLink169Poster } from "./ReleaseLink.16_9Poster";
|
||||
import { ReleaseLinkPoster } from "./ReleaseLink.Poster";
|
||||
|
||||
export const ReleaseLink = (props: {type?: "16_9"|"poster"}) => {
|
||||
export const ReleaseLink = (props: { type?: "16_9" | "poster" }) => {
|
||||
const type = props.type || "16_9";
|
||||
|
||||
if (type == "16_9") {
|
||||
return (
|
||||
<>
|
||||
<div className="hidden lg:block"><ReleaseLink169 {...props} /></div>
|
||||
<div className="block lg:hidden"><ReleaseLink169Poster {...props} /></div>
|
||||
<div>TYPE=16/9</div>
|
||||
|
||||
{/* <div className="hidden lg:block"><ReleaseLink169 {...props} /></div> */}
|
||||
{/* <div className="block lg:hidden"><ReleaseLink169Poster {...props} /></div> */}
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
if (type == "poster") {
|
||||
return <ReleaseLinkPoster {...props} />;
|
||||
return <div>TYPE=POSTER</div>;
|
||||
// return <ReleaseLinkPoster {...props} />;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue