Skip to content

Commit

Permalink
fix(core/managed): respect line breaks in commit messages (#8653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Munson authored Oct 14, 2020
1 parent 8acc380 commit 068518d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/scripts/modules/core/src/managed/ArtifactDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,12 @@ export const ArtifactDetail = ({
</a>
}
/>
<VersionMetadataItem label="Message" value={git.commitInfo.message} />
<VersionMetadataItem
label="Message"
value={
<span style={{ wordBreak: 'break-word', whiteSpace: 'pre-wrap' }}>{git.commitInfo.message}</span>
}
/>
</>
)}
{git?.branch && <VersionMetadataItem label="Branch" value={git.branch} />}
Expand Down

0 comments on commit 068518d

Please sign in to comment.