From 2504b0e08ba4f0205bd15e381e6153a439b8a08f Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sat, 5 Nov 2022 23:24:11 +0700 Subject: Fix overflow caused by `patch-diff-links` (#6140) --- source/features/patch-diff-links.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/features/patch-diff-links.tsx') 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( patch {' '} -- cgit v1.2.3