summaryrefslogtreecommitdiff
path: root/source/features/view-markdown-source.tsx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/features/view-markdown-source.tsx6
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/>