diff --git a/src/HtmlPreviewer.tsx b/src/HtmlPreviewer.tsx index 436ed93..4db0240 100644 --- a/src/HtmlPreviewer.tsx +++ b/src/HtmlPreviewer.tsx @@ -31,9 +31,9 @@ export function HtmlPreviewer(props: PreviewerProps) { style={{ ...(maxLines && { display: "-webkit-box", - "-webkit-line-clamp": maxLines, - "-webkit-box-orient": "vertical", overflow: "hidden", + WebkitLineClamp: maxLines, + WebkitBoxOrient: "vertical", }), ...(minHeight && { minHeight }), }}