cncf / filterable-landscape

Interactive version of the Cloud Native Landscape
https://landscape.cncf.io/
Apache License 2.0
9 stars 12 forks source link

ceph SVG is getting distorted #218

Closed dankohn closed 6 years ago

dankohn commented 6 years ago

This is the only SVG that is scaling strangely: https://landscape.cncf.io/organization=red-hat&selected=ceph

Is there something odd about the SVG or some extra code we can add to that it always keeps it proportional?

I can always switch back to a PNG but want to avoid this occurring with SVGs.

AndreyKozlov1984 commented 6 years ago

closed via 7b26c82 To fix those issue later, I need to properly set up a viewbox. And the way to calculate it is to make a svg2png, then to autocrop, get the autocrop offset and calculate the viewbox. Then to add it to the svg file