diff options
author | 2021-04-17 03:04:30 +0200 | |
---|---|---|
committer | 2021-04-17 08:04:30 +0700 | |
commit | 6aee01ce20995d3384acfc697102331840d0a992 (patch) | |
tree | 18923a3a86fbf17fd1527e62b7389d8e76434ce3 /source/features/view-markdown-source.tsx | |
parent | 86214031546e68f59534b092bc420415fd9c09f4 (diff) | |
download | refined-github-6aee01ce20995d3384acfc697102331840d0a992.tar.gz refined-github-6aee01ce20995d3384acfc697102331840d0a992.tar.zst refined-github-6aee01ce20995d3384acfc697102331840d0a992.zip |
Fix position of `view-markdown-source` (#4243)
Diffstat (limited to '')
-rw-r--r-- | source/features/view-markdown-source.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/features/view-markdown-source.tsx b/source/features/view-markdown-source.tsx index 20ac64f4..7245f1bd 100644 --- a/source/features/view-markdown-source.tsx +++ b/source/features/view-markdown-source.tsx @@ -95,11 +95,7 @@ async function init(): Promise<void> { delegate(document, '.rgh-md-source:not(.selected)', 'click', showSource); delegate(document, '.rgh-md-rendered:not(.selected)', 'click', showRendered); - const fileButtons = - select('.repository-content .Box-header.flex-md-items-center .d-flex') ?? - // Pre "Repository refresh" layout - select('.repository-content .Box-header .d-flex')!; - fileButtons.prepend( + select('#raw-url')!.closest('.d-flex')!.prepend( <div className="BtnGroup"> <button className="btn btn-sm BtnGroup-item tooltipped tooltipped tooltipped-nw rgh-md-source" type="button" aria-label="Display the source blob"> <CodeIcon/> |