summaryrefslogtreecommitdiff
path: root/source/features/patch-diff-links.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2022-11-05 23:24:11 +0700
committerGravatar GitHub <noreply@github.com> 2022-11-05 23:24:11 +0700
commit2504b0e08ba4f0205bd15e381e6153a439b8a08f (patch)
tree72c15fc24f5014f9d8c94afdd52d4600f924fb44 /source/features/patch-diff-links.tsx
parent6043938e9b2eb8a45f9433b18d75164955729d3c (diff)
downloadrefined-github-2504b0e08ba4f0205bd15e381e6153a439b8a08f.tar.gz
refined-github-2504b0e08ba4f0205bd15e381e6153a439b8a08f.tar.zst
refined-github-2504b0e08ba4f0205bd15e381e6153a439b8a08f.zip
Fix overflow caused by `patch-diff-links` (#6140)
Diffstat (limited to 'source/features/patch-diff-links.tsx')
-rw-r--r--source/features/patch-diff-links.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/features/patch-diff-links.tsx b/source/features/patch-diff-links.tsx
index e0dce047..a20f66ed 100644
--- a/source/features/patch-diff-links.tsx
+++ b/source/features/patch-diff-links.tsx
@@ -13,7 +13,9 @@ function init(): void {
commitUrl = commitUrl.replace(/\/pull\/\d+\/commits/, '/commit');
}
- select('.commit-meta > :last-child')!.append(
+ const commitMeta = select('.commit-meta')!;
+ commitMeta.classList.remove('no-wrap'); // #5987
+ commitMeta.lastElementChild!.append(
<span className="sha-block" data-turbo="false">
<a href={`${commitUrl}.patch`} className="sha">patch</a>
{' '}