diff --git a/src/icon-packs/file-icon.ts b/src/icon-packs/file-icon.ts index ffbd887..2a98edc 100644 --- a/src/icon-packs/file-icon.ts +++ b/src/icon-packs/file-icon.ts @@ -60,7 +60,6 @@ export class FileIconData implements FileIconDataType { return (async () => { const svgEl = await this.plugin.fileIconCache.getIcon(this.path); if (svgEl) { - svgEl.addClass("isc-svg-icon"); this.fixFillColor(svgEl); el.append(svgEl); } else { diff --git a/src/icon-packs/icon.less b/src/icon-packs/icon.less index a58490d..ab25725 100644 --- a/src/icon-packs/icon.less +++ b/src/icon-packs/icon.less @@ -3,11 +3,11 @@ } span.isc-icon { + vertical-align: middle; & > img, & > svg { height: 1em; width: 1em; - vertical-align: text-top; cursor: default !important; .view-content .mod-cm6 .cm-isc > & { cursor: pointer;