summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/features/releases-tab.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/features/releases-tab.tsx b/source/features/releases-tab.tsx
index ffc4c7cb..a27ac983 100644
--- a/source/features/releases-tab.tsx
+++ b/source/features/releases-tab.tsx
@@ -69,7 +69,7 @@ async function init(): Promise<false | void> {
'.UnderlineNav-body + *'
].join());
- const repoNavigationBar = select('.js-repo-nav.UnderlineNav');
+ const repoNavigationBar = select('.js-responsive-underlinenav');
if (repoNavigationBar) {
// "Repository refresh" layout
const releasesTab = (
@@ -92,6 +92,9 @@ async function init(): Promise<false | void> {
</li>
);
+ // This re-triggers the overflow listener forcing it to also hide this tab if necessary #3347
+ repoNavigationBar.replaceWith(repoNavigationBar);
+
// Update "selected" tab mark
if (pageDetect.isReleasesOrTags()) {
const selected = select('.UnderlineNav-item.selected');