Skip to content

Commit d68b7c2

Browse files
committed
Only show the first line of each commit in changelog dialog
Multi-line commits aren't actually formatted correctly, and most likely the first line is enough of a summary anyway, so this change trims to the first line. The commits are linked, so you can click through if you want more detail. Fixes element-hq/element-web#8285
1 parent d8c5163 commit d68b7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/ChangelogDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class ChangelogDialog extends React.Component {
5151
return (
5252
<li key={commit.sha} className="mx_ChangelogDialog_li">
5353
<a href={commit.html_url} target="_blank" rel="noopener">
54-
{commit.commit.message}
54+
{commit.commit.message.split('\n')[0]}
5555
</a>
5656
</li>
5757
);

0 commit comments

Comments
 (0)