Use only CSS to truncate commit message in blame
This commit is contained in:
parent
d9ed329b8c
commit
3951eb6270
3 changed files with 16 additions and 2 deletions
|
@ -163,8 +163,18 @@
|
|||
td.blame-commit {
|
||||
padding: 5px 10px;
|
||||
min-width: 400px;
|
||||
max-width: 400px;
|
||||
background: $gray-light;
|
||||
border-left: 3px solid;
|
||||
|
||||
.commit-row-title {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.item-title {
|
||||
flex: 1;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@for $i from 0 through 5 {
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
.commit
|
||||
= author_avatar(commit, size: 36)
|
||||
.commit-row-title
|
||||
%strong
|
||||
= link_to_gfm truncate(commit.title, length: 35), project_commit_path(@project, commit.id), class: "cdark"
|
||||
%span.item-title.str-truncated-100
|
||||
= link_to_gfm commit.title, project_commit_path(@project, commit.id), class: "cdark", title: commit.title
|
||||
.pull-right
|
||||
= link_to commit.short_id, project_commit_path(@project, commit), class: "commit-sha"
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Use only CSS to truncate commit message in blame
|
||||
merge_request: 12900
|
||||
author: Takuya Noguchi
|
Loading…
Reference in a new issue