natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!

Home Page:https://astroicon.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect image sizes in the latest version (1.0.3)

spokospace opened this issue · comments

What version of astro-icon are you using?

v.1.0.3

Astro Info

❯ astro info
Astro                    v4.2.6
Node                     v18.18.0
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             astro-icon

Describe the Bug

In the latest version, all icons from @iconify-json are very large. I noticed that in svgs there is no width="1em" parameter, so svgs do not use font-based size.

In the previous version 1.0.2 everything worked fine, so I went back to this working version.

image

What's the expected result?

Display icons in normal size based on font like before.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-9w4guu?file=src%2Fpages%2Findex.astro

Sorry about this! Looks like #186 had some unintended consequences. I'm reverting and 1.0.4 will be out shortly.