mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-05-18 08:45:08 +02:00
fix(lucide-static): add viewBox attribute to sprite symbol elements (#4223)
Sprite symbols were missing the viewBox attribute, causing icons to be clipped instead of scaling proportionally when used at smaller sizes. Fixes #2768
This commit is contained in:
@@ -15,6 +15,7 @@ export default async function generateSprite(
|
||||
value: '',
|
||||
attributes: {
|
||||
id: name,
|
||||
viewBox: parsedSvg.attributes.viewBox,
|
||||
},
|
||||
children: parsedSvg.children,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user