fix: tailles des thumbs ne se réduit pas pour ceulleux qui ont une vidéo
parent
b61a17f1ca
commit
5982b04bb5
|
@ -5,6 +5,7 @@ interface Props {
|
|||
width: string;
|
||||
height: string;
|
||||
onClick: () => void;
|
||||
className?: string;
|
||||
style?: IframeHTMLAttributes<HTMLIFrameElement>["style"];
|
||||
}
|
||||
|
||||
|
@ -13,6 +14,7 @@ export const EmbeddedYoutube = ({
|
|||
width,
|
||||
height,
|
||||
onClick,
|
||||
className,
|
||||
style = {},
|
||||
}: Props) => (
|
||||
<div onClick={onClick}>
|
||||
|
@ -24,6 +26,7 @@ export const EmbeddedYoutube = ({
|
|||
frameBorder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allowFullScreen
|
||||
className={className}
|
||||
style={{ pointerEvents: "none", ...style }}
|
||||
></iframe>
|
||||
</div>
|
||||
|
|
|
@ -27,6 +27,7 @@ export const ResistantThumb = ({ resistant }: Props) => {
|
|||
youtubeId={resistant.video}
|
||||
width={"200"}
|
||||
height={"200"}
|
||||
className="resistant-thumb"
|
||||
onClick={handleClick}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue