Skip to content

Commit

Permalink
Fix line wrapping for git blame messages (sourcegraph#48006)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Feb 22, 2023
1 parent 69c7f65 commit c9ab2fe
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions client/web/src/repo/blob/BlameDecoration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,15 @@ export const BlameDecoration: React.FunctionComponent<BlameDecorationProps> = ({
as={SourceCommitIcon}
className={classNames('mr-2 flex-shrink-0', styles.icon)}
/>
<CommitMessageWithLinks
message={blameHunk.message}
to={blameHunk.displayInfo.linkURL}
className={styles.link}
onClick={logCommitClick}
externalURLs={externalURLs}
/>
<div>
<CommitMessageWithLinks
message={blameHunk.message}
to={blameHunk.displayInfo.linkURL}
className={styles.link}
onClick={logCommitClick}
externalURLs={externalURLs}
/>
</div>
</div>
{blameHunk.commit.parents.length > 0 && (
<>
Expand Down

0 comments on commit c9ab2fe

Please sign in to comment.