Skip to content

Commit

Permalink
feat(icon): adjust icon vertical align style
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenlx committed Mar 9, 2022
1 parent bdf1d19 commit cfc7561
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/icon-packs/file-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/icon-packs/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cfc7561

Please sign in to comment.