Skip to content

Commit

Permalink
fix(code/frontend): truncate commit message (#33548)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangQianliang authored and zfy0701 committed Mar 20, 2019
1 parent 06b3796 commit 9dc63ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/code/public/components/main/commit_history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const Commit = (props: { commit: CommitInfo; date: string; repoUri: string }) =>
.join('');
return (
<EuiPanel className="code-timeline__commit--root">
<div>
<div className="eui-textTruncate">
<EuiText size="s">
<p>{message}</p>
<p className="eui-textTruncate">{message}</p>
</EuiText>
<EuiText size="xs">
<EuiTextColor color="subdued">
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/code/public/components/main/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
.code-commit-id {
@include euiCodeFont;
height: calc(20rem / 14);
margin: auto 0;
margin: auto 0 auto $euiSizeM;
text-align: center;
flex-shrink: 0;
}

0 comments on commit 9dc63ed

Please sign in to comment.