🎥 Make videos programmatically with React
CopyButton layout fix
Patric Salvisberg84cd22146044
diff --git a/packages/cli/src/editor/components/CopyButton.tsx b/packages/cli/src/editor/components/CopyButton.tsxindex 5dd85cee57..b54ed7479c 100644--- a/packages/cli/src/editor/components/CopyButton.tsx+++ b/packages/cli/src/editor/components/CopyButton.tsx@@ -7,7 +7,11 @@ const iconStyle: React.CSSProperties = {width: 16,height: 16,color: 'white',- verticalAlign: 'sub',+};++const buttonContainerStyle: React.CSSProperties = {+ display: 'flex',+ minWidth: '114px',};const copyIcon = (@@ -55,7 +59,11 @@ export const CopyButton: React.FC<{}, [copied]);return (- <Button onClick={onClick}>+ <Button+ onClick={onClick}+ style={{}}+ buttonContainerStyle={buttonContainerStyle}+ >{copyIcon}<Spacing x={1.5} />{' '}<span style={labelStyle}>{copied ? labelWhenCopied : label}</span>diff --git a/packages/cli/src/preview-server/error-overlay/remotion-overlay/Button.tsx b/packages/cli/src/preview-server/error-overlay/remotion-overlay/Button.tsxindex 3c5ff50357..c84889986a 100644--- a/packages/cli/src/preview-server/error-overlay/remotion-overlay/Button.tsx+++ b/packages/cli/src/preview-server/error-overlay/remotion-overlay/Button.tsx@@ -13,6 +13,7 @@ const button: React.CSSProperties = {fontSize: 14,color: 'white',flexDirection: 'row',+ display: 'flex',};const ButtonRefForwardFunction: React.ForwardRefRenderFunction<@@ -46,7 +47,6 @@ const ButtonRefForwardFunction: React.ForwardRefRenderFunction<...(style ?? {}),};}, [style]);-const buttonContainer: React.CSSProperties = useMemo(() => {return {padding: 10,