From d901b7095c8813d1dce2d8f7008864c87640d8c7 Mon Sep 17 00:00:00 2001 From: one Date: Sat, 16 Aug 2025 11:36:17 +0800 Subject: [PATCH] fix: remove svg max-width --- src/renderer/src/components/Preview/utils.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/renderer/src/components/Preview/utils.ts b/src/renderer/src/components/Preview/utils.ts index 54070eab9a..177aeb64c7 100644 --- a/src/renderer/src/components/Preview/utils.ts +++ b/src/renderer/src/components/Preview/utils.ts @@ -32,10 +32,6 @@ export function renderSvgInShadowHost(svgContent: string, hostElement: HTMLEleme width: 100%; height: 100%; } - svg { - max-width: 100%; - height: auto; - } ` // Clear previous content and append new style and SVG