refactor: visuals

This commit is contained in:
2026-03-15 11:08:21 +08:00
parent f87ccb662d
commit 7aba5d0c81
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -133,8 +133,8 @@ export function PltPreview(props: PltPreviewProps) {
class="bg-white shadow-xl"
viewBox={`0 0 ${parsedData().width} ${parsedData().height}`}
style={{
width: `${Math.min(parsedData().width, 800)}px`,
height: `${(parsedData().height / parsedData().width) * Math.min(parsedData().width, 800)}px`
width: `${Math.min(parsedData().width, 800)}mm`,
height: `${(parsedData().height / parsedData().width) * Math.min(parsedData().width, 800)}mm`
}}
xmlns="http://www.w3.org/2000/svg"
>