summaryrefslogtreecommitdiff
path: root/source/features/edit-files-faster.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-05-17 11:54:08 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-05-17 11:54:08 +0800
commitfedcb021f6c99cb811a0b8ec52dd29f6a9102df9 (patch)
treeff08b1e34855b31d9e3a5125686644257fdbeef3 /source/features/edit-files-faster.tsx
parent09d1ab67b8eae588f33d4f8aa31cfeec1f9dac93 (diff)
downloadrefined-github-fedcb021f6c99cb811a0b8ec52dd29f6a9102df9.tar.gz
refined-github-fedcb021f6c99cb811a0b8ec52dd29f6a9102df9.tar.zst
refined-github-fedcb021f6c99cb811a0b8ec52dd29f6a9102df9.zip
Improve compatibility with `github-file-icons`
Fixes #1993 Fixes https://github.com/xxhomey19/github-file-icon/issues/59
Diffstat (limited to 'source/features/edit-files-faster.tsx')
-rw-r--r--source/features/edit-files-faster.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/features/edit-files-faster.tsx b/source/features/edit-files-faster.tsx
index 28453db8..8d3d9186 100644
--- a/source/features/edit-files-faster.tsx
+++ b/source/features/edit-files-faster.tsx
@@ -15,11 +15,8 @@ function init(): void {
pathnameParts[3] = 'edit'; // Replaces `/blob/`
- wrap(fileIcon,
- <a href={pathnameParts.join('/')} className="rgh-edit-files-faster">
- {icons.edit()}
- </a>
- );
+ wrap(fileIcon, <a href={pathnameParts.join('/')} className="rgh-edit-files-faster" />);
+ fileIcon.after(icons.edit());
}
}