🎥 Make videos programmatically with React
Update VideoPreview.tsx
MehmetAdemi747e9af631e3
diff --git a/packages/docs/src/components/VideoPreview.tsx b/packages/docs/src/components/VideoPreview.tsxindex 3f9429c48d..13af5259ab 100644--- a/packages/docs/src/components/VideoPreview.tsx+++ b/packages/docs/src/components/VideoPreview.tsx@@ -97,8 +97,22 @@ export const VideoPreview: React.FC<};}, [height, width]);+ const frameStyle: React.CSSProperties = {+ border: "2px solid #ccc",+ borderRadius: "10px",+ backgroundColor: "var(--ifm-background-color)",+ boxShadow: "var(--box-shadow)",+ margin: "5px",+ overflow: "hidden",+ };+return (- <a ref={container} style={a} className={clsx(videoStyle)} onClick={onClick}>+ <a+ ref={container}+ style={{ ...a, ...frameStyle }}+ className={clsx(videoStyle)}+ onClick={onClick}+ ><div style={placeholder}><div style={style} /></div>