Small fix

This commit is contained in:
cdricms
2025-01-31 18:52:49 +01:00
parent c90e2a8844
commit 0595f5dba7
4 changed files with 8 additions and 2 deletions

View File

@@ -24,6 +24,10 @@ export default function YouTubeEmbed({
return (
<div
style={{
width: width === "full" ? "100%" : `${width}px`,
height: height === "full" ? "100%" : `${height}px`,
}}
className={`relative w-${width === "full" ? width : "[" + width + "px]"} h-${height === "full" ? height : "[" + height + "px]"} cursor-pointer`}
onClick={_loadIframe}
>