diff --git a/app/assets/stylesheets/sections/commits.scss b/app/assets/stylesheets/sections/commits.scss index 03a545de6faff4db4f126fe6da3a5f4242c82008..f3355c8f1d6498e742a4468286ca4195d9b47f92 100644 --- a/app/assets/stylesheets/sections/commits.scss +++ b/app/assets/stylesheets/sections/commits.scss @@ -170,20 +170,13 @@ li.commit { } .text-expander { - background: #ddd; + background: #eee; color: #555; 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; + margin-left: 4px; &:hover { - background-color: #ccc; + background-color: #ddd; } } } @@ -218,10 +211,4 @@ li.commit { @extend .cgray; } } - - &.open { - .commit-row-description { - display: block; - } - } } diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index a5e369e93663ae923aa8b0ea2c55995f6663a260..4c34a8f832fe5022eb923de584dc6bcf4d27709f 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -1,11 +1,11 @@ -%li.commit - .commit-row-title{"data-toggle" => "dropdown"} +%li.commit.js-toggle-container + .commit-row-title = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id" %span.str-truncated = link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message" - 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" .notes_count @@ -16,7 +16,7 @@ = notes.count - if commit.description? - .commit-row-description + .commit-row-description.js-toggle-content = simple_format(commit.description) .commit-row-info