Commit 3951eb62 authored by Takuya Noguchi's avatar Takuya Noguchi

Use only CSS to truncate commit message in blame

parent d9ed329b
...@@ -163,8 +163,18 @@ ...@@ -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 {
......
...@@ -21,8 +21,8 @@ ...@@ -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"
   
......
---
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