summaryrefslogtreecommitdiff
path: root/source/features/quick-pr-diff-options.tsx
diff options
context:
space:
mode:
authorGravatar Kid <44045911+kidonng@users.noreply.github.com> 2021-10-08 01:09:10 +0800
committerGravatar GitHub <noreply@github.com> 2021-10-08 01:09:10 +0800
commitc43d984825804a4b7f90cc947fef58ac59e1c9e6 (patch)
tree67ce1ebb7870c5c3ec1ef41a873dc55de57b74cc /source/features/quick-pr-diff-options.tsx
parent397b65a5f48c3aee24b16d480c79f751ac0cc0b4 (diff)
downloadrefined-github-c43d984825804a4b7f90cc947fef58ac59e1c9e6.tar.gz
refined-github-c43d984825804a4b7f90cc947fef58ac59e1c9e6.tar.zst
refined-github-c43d984825804a4b7f90cc947fef58ac59e1c9e6.zip
Fix `quick-pr-diff-options` buttons position (#4883)
Diffstat (limited to 'source/features/quick-pr-diff-options.tsx')
-rw-r--r--source/features/quick-pr-diff-options.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/quick-pr-diff-options.tsx b/source/features/quick-pr-diff-options.tsx
index 2bfd781c..9f598d22 100644
--- a/source/features/quick-pr-diff-options.tsx
+++ b/source/features/quick-pr-diff-options.tsx
@@ -70,7 +70,7 @@ function createWhitespaceButton(): HTMLElement {
}
function initPR(): false | void {
- select('.js-file-filter')!.closest('.flex-auto')!.append(
+ select('.js-file-filter')!.parentElement!.append(
<div className="diffbar-item d-flex">{createDiffStyleToggle()}</div>,
<div className="diffbar-item d-flex">{createWhitespaceButton()}</div>,
);