Use only CSS to truncate commit message in blame

This commit is contained in:
Takuya Noguchi 2017-07-17 00:11:32 +09:00
parent d9ed329b8c
commit 3951eb6270
3 changed files with 16 additions and 2 deletions

View file

@ -163,8 +163,18 @@
td.blame-commit { td.blame-commit {
padding: 5px 10px; padding: 5px 10px;
min-width: 400px; min-width: 400px;
max-width: 400px;
background: $gray-light; background: $gray-light;
border-left: 3px solid; border-left: 3px solid;
.commit-row-title {
display: flex;
}
.item-title {
flex: 1;
margin-right: 0.5em;
}
} }
@for $i from 0 through 5 { @for $i from 0 through 5 {

View file

@ -21,8 +21,8 @@
.commit .commit
= author_avatar(commit, size: 36) = author_avatar(commit, size: 36)
.commit-row-title .commit-row-title
%strong %span.item-title.str-truncated-100
= link_to_gfm truncate(commit.title, length: 35), project_commit_path(@project, commit.id), class: "cdark" = link_to_gfm commit.title, project_commit_path(@project, commit.id), class: "cdark", title: commit.title
.pull-right .pull-right
= link_to commit.short_id, project_commit_path(@project, commit), class: "commit-sha" = link_to commit.short_id, project_commit_path(@project, commit), class: "commit-sha"
   

View file

@ -0,0 +1,4 @@
---
title: Use only CSS to truncate commit message in blame
merge_request: 12900
author: Takuya Noguchi