summaryrefslogtreecommitdiff
path: root/source/features/quick-pr-diff-options.tsx
diff options
context:
space:
mode:
authorGravatar Florent <cheap.glitch@gmail.com> 2021-10-24 11:08:47 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-24 11:08:47 +0200
commit719b1597c875bcfa6d5f1572b5b5ec08015039b9 (patch)
treec19bc219e6ae28432d58e869e40efb48eb322011 /source/features/quick-pr-diff-options.tsx
parent1e502a87384dc0a612d4c52653a3adce8f184af1 (diff)
downloadrefined-github-719b1597c875bcfa6d5f1572b5b5ec08015039b9.tar.gz
refined-github-719b1597c875bcfa6d5f1572b5b5ec08015039b9.tar.zst
refined-github-719b1597c875bcfa6d5f1572b5b5ec08015039b9.zip
Fix `quick-pr-diff-options` feature (#4971)
Diffstat (limited to 'source/features/quick-pr-diff-options.tsx')
-rw-r--r--source/features/quick-pr-diff-options.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/quick-pr-diff-options.tsx b/source/features/quick-pr-diff-options.tsx
index c1771b94..35a36903 100644
--- a/source/features/quick-pr-diff-options.tsx
+++ b/source/features/quick-pr-diff-options.tsx
@@ -83,7 +83,8 @@ function initPR(): false | void {
}
// Only show the native dropdown on medium and small screens #2597
- select('.js-diff-settings')!.closest('details')!.classList.add('d-lg-none');
+ // TODO [2022-05-01]: Remove `.js-diff-settings` from the selector (kept for GHE)
+ select('.js-diff-settings, [aria-label="Diff settings"]')!.closest('details')!.classList.add('d-lg-none');
// Make space for the new button by removing "Changes from" #655
select('[data-hotkey="c"] strong')!.previousSibling!.remove();