BigW Consortium Gitlab

Fix commit description expand

parent f1e1e5bf
...@@ -170,20 +170,13 @@ li.commit { ...@@ -170,20 +170,13 @@ li.commit {
} }
.text-expander { .text-expander {
background: #ddd; background: #eee;
color: #555; color: #555;
padding: 0 5px; padding: 0 5px;
line-height: 6px;
height: 12px;
font-size: 12px;
font-weight: bold;
vertical-align: middle;
display: inline-block;
border-radius: 1px;
text-decoration: none;
cursor: pointer; cursor: pointer;
margin-left: 4px;
&:hover { &:hover {
background-color: #ccc; background-color: #ddd;
} }
} }
} }
...@@ -218,10 +211,4 @@ li.commit { ...@@ -218,10 +211,4 @@ li.commit {
@extend .cgray; @extend .cgray;
} }
} }
&.open {
.commit-row-description {
display: block;
}
}
} }
%li.commit %li.commit.js-toggle-container
.commit-row-title{"data-toggle" => "dropdown"} .commit-row-title
= link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id" = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
   
%span.str-truncated %span.str-truncated
= link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message" = link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message"
- if commit.description? - if commit.description?
%span.label-default.text-expander.js-details-target ... %a.label-default.text-expander.js-toggle-button ...
= link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right" = link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right"
.notes_count .notes_count
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
= notes.count = notes.count
- if commit.description? - if commit.description?
.commit-row-description .commit-row-description.js-toggle-content
= simple_format(commit.description) = simple_format(commit.description)
.commit-row-info .commit-row-info
......
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