poppa / sveltekit-svg

SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
MIT License
228 stars 23 forks source link

BUG: SVG component not resizing #62

Open moonlitgrace opened 2 weeks ago

moonlitgrace commented 2 weeks ago

version:

"@poppanator/sveltekit-svg": "^5.0.0-svelte5.5",

When i use it like:

<script lang="ts">
    import CoreIcons from '$lib/assets/core-icons.svg?component'
</script>

<CoreIcons class="w-20" />

output: Screenshot 2024-08-31 at 14-09-05

when i remove class: Screenshot 2024-08-31 at 14-09-23

it seems cropped instead resize. i mean - the first one seems cropped and 2nd one is the full svg

poppa commented 2 weeks ago

I need a better bug report than this! I can't do anything from this information, sorry.