jamesmartin / inline_svg

Embed SVG documents in your Rails views and style them with CSS
MIT License
716 stars 72 forks source link

Add viewBox option #142

Closed sunny closed 1 year ago

sunny commented 2 years ago

Adds the viewBox attribute to the default transformations, as the view_box option.

I’ve been using this as a custom transformation for a while in production but since viewBox is a very common attribute on inline SVGs, I think it would be nice to have this as a default.

sunny commented 1 year ago

Yay! Thank you maintaining inline_svg 🎉