You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
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 https://github.com/vector-im/riot-web/issues/8285
This commit is contained in:
@@ -51,7 +51,7 @@ export default class ChangelogDialog extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<li key={commit.sha} className="mx_ChangelogDialog_li">
|
<li key={commit.sha} className="mx_ChangelogDialog_li">
|
||||||
<a href={commit.html_url} target="_blank" rel="noopener">
|
<a href={commit.html_url} target="_blank" rel="noopener">
|
||||||
{commit.commit.message}
|
{commit.commit.message.split('\n')[0]}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user