refactor: visuals
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user