BigW Consortium Gitlab

Commit 3951eb62 by Takuya Noguchi

Use only CSS to truncate commit message in blame

parent d9ed329b
......@@ -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"
 
......
---
title: Use only CSS to truncate commit message in blame
merge_request: 12900
author: Takuya Noguchi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment