mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 15:44:05 +00:00
svelte: fix comments
This commit is contained in:
parent
bf07abad7f
commit
59af5790aa
@ -27,7 +27,6 @@ const svgDefaults = {
|
|||||||
/**
|
/**
|
||||||
* Style modes
|
* Style modes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const commonProps: Record<string, string> = {
|
const commonProps: Record<string, string> = {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
};
|
};
|
||||||
@ -176,7 +175,7 @@ export function render(
|
|||||||
const item = iconToSVG(icon, customisations);
|
const item = iconToSVG(icon, customisations);
|
||||||
const renderAttribs = item.attributes;
|
const renderAttribs = item.attributes;
|
||||||
|
|
||||||
// Inline mode
|
// Inline display
|
||||||
if (item.inline) {
|
if (item.inline) {
|
||||||
// Style overrides it
|
// Style overrides it
|
||||||
style = 'vertical-align: -0.125em; ' + style;
|
style = 'vertical-align: -0.125em; ' + style;
|
||||||
@ -210,6 +209,7 @@ export function render(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Render <span> with style
|
||||||
const { body, width, height } = icon;
|
const { body, width, height } = icon;
|
||||||
const useMask =
|
const useMask =
|
||||||
mode === 'mask' ||
|
mode === 'mask' ||
|
||||||
|
Loading…
Reference in New Issue
Block a user