parent
c476c2059b
commit
89cb6a585a
@ -11,7 +11,7 @@ interface AssetInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getFontAwesomeCDNLink(type: string): string {
|
function getFontAwesomeCDNLink(type: string): string {
|
||||||
return `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/js/${type}.min.js`
|
return `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/js/${type}.min.js`
|
||||||
}
|
}
|
||||||
|
|
||||||
export function prepareIcon(
|
export function prepareIcon(
|
||||||
@ -38,7 +38,7 @@ export function prepareIcon(
|
|||||||
if (asset === 'fontawesome-with-brands') {
|
if (asset === 'fontawesome-with-brands') {
|
||||||
return normalizeAsset(getFontAwesomeCDNLink('brands'), 'fontawesome')
|
return normalizeAsset(getFontAwesomeCDNLink('brands'), 'fontawesome')
|
||||||
}
|
}
|
||||||
return null
|
return normalizeAsset(asset, 'fontawesome')
|
||||||
}).flat().filter(notNullish))
|
}).flat().filter(notNullish))
|
||||||
}
|
}
|
||||||
let hasStyle = false
|
let hasStyle = false
|
||||||
|
|||||||
@ -56,6 +56,8 @@ const extraClasses = computed(() => {
|
|||||||
<style>
|
<style>
|
||||||
.vp-icon.fontawesome {
|
.vp-icon.fontawesome {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: initial;
|
||||||
|
height: initial;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user