Skip to content

Commit

Permalink
fix: svg preview viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Jan 31, 2024
1 parent 94d4766 commit 7888b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/excalidraw/Excalidraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const SvgPreview: FC<{
}> = ({ svgElement }) => {
return (
<div
className="relative w-full overflow-auto [&>svg]:max-w-full"
className="relative w-full overflow-auto [&>svg]:!h-full [&>svg]:!w-full [&>svg]:max-w-full"
dangerouslySetInnerHTML={{
__html: svgElement.outerHTML,
}}
Expand Down

0 comments on commit 7888b72

Please sign in to comment.