Commit 86e25595c8766a41b31fef61c7bde6cf98826641
1 parent
aff7ac37
Exists in
spb-stable
and in
3 other branches
Fix btn-group align
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
12 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/generic/buttons.scss
| ... | ... | @@ -177,5 +177,15 @@ |
| 177 | 177 | } |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | +.btn-group { | |
| 181 | + &.btn-grouped { | |
| 182 | + margin-right: 7px; | |
| 183 | + float: left; | |
| 184 | + &:last-child { | |
| 185 | + margin-right: 0px; | |
| 186 | + } | |
| 187 | + } | |
| 188 | +} | |
| 189 | + | |
| 180 | 190 | .btn-group-small > .btn { @extend .btn.btn-small; } |
| 181 | 191 | .btn-group-tiny > .btn { @extend .btn.btn-tiny; } | ... | ... |
app/views/projects/branches/_branch.html.haml
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | %i.icon-lock |
| 11 | 11 | .pull-right |
| 12 | 12 | - if can?(current_user, :download_code, @project) |
| 13 | - = render 'projects/repositories/download_archive', ref: branch.name, btn_class: 'grouped btn-group-small' | |
| 13 | + = render 'projects/repositories/download_archive', ref: branch.name, btn_class: 'btn-grouped btn-group-small' | |
| 14 | 14 | - if branch.name != @repository.root_ref |
| 15 | 15 | = link_to project_compare_index_path(@project, from: @repository.root_ref, to: branch.name), class: 'btn btn-grouped btn-small', method: :post, title: "Compare" do |
| 16 | 16 | %i.icon-copy | ... | ... |
app/views/projects/tags/_tag.html.haml
| ... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 | |
| 16 | 16 | %span.pull-right |
| 17 | 17 | - if can? current_user, :download_code, @project |
| 18 | - = render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'grouped btn-group-small' | |
| 18 | + = render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small' | |
| 19 | 19 | - if can?(current_user, :admin_project, @project) |
| 20 | 20 | = link_to project_tag_path(@project, tag.name), class: 'btn btn-small remove-row grouped', method: :delete, data: { confirm: 'Removed tag cannot be restored. Are you sure?'}, remote: true do |
| 21 | 21 | %i.icon-trash | ... | ... |