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:
Toma
2026-03-28 07:47:55 +01:00
committed by GitHub
parent d8700b257a
commit d53f615cf3

View File

@@ -15,6 +15,7 @@ export default async function generateSprite(
value: '',
attributes: {
id: name,
viewBox: parsedSvg.attributes.viewBox,
},
children: parsedSvg.children,
}));