diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-01-25 01:51:22 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-01-25 01:51:22 +0300 |
commit | d55839120e92be48b30d248ce9d72a19be038c79 (patch) | |
tree | 730e0cca6046baf24f997c69e88989f85a394ab3 /app | |
parent | cd361af830445ca5e61addd649476ba36814617b (diff) | |
parent | b9f333444fd15a85fbeb24074134fbaf5fa1ca98 (diff) |
Merge branch '26447-fix-tab-list-order' into 'master'
Fixed tab index order on branch commits list page
Closes #26447
See merge request !8489
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/framework/blocks.scss | 12 | ||||
-rw-r--r-- | app/views/projects/commits/show.html.haml | 7 |
2 files changed, 15 insertions, 4 deletions
diff --git a/app/assets/stylesheets/framework/blocks.scss b/app/assets/stylesheets/framework/blocks.scss index 407c800feb7..592ef0d647f 100644 --- a/app/assets/stylesheets/framework/blocks.scss +++ b/app/assets/stylesheets/framework/blocks.scss @@ -82,7 +82,12 @@ } .block-controls { - float: right; + display: -webkit-flex; + display: flex; + -webkit-justify-content: flex-end; + justify-content: flex-end; + -webkit-flex: 1; + flex: 1; .control { float: left; @@ -282,3 +287,8 @@ } } } + +.flex-container-block { + display: -webkit-flex; + display: flex; +} diff --git a/app/views/projects/commits/show.html.haml b/app/views/projects/commits/show.html.haml index e77f23c7fd8..d94f23f5a38 100644 --- a/app/views/projects/commits/show.html.haml +++ b/app/views/projects/commits/show.html.haml @@ -9,10 +9,13 @@ = render "head" %div{ class: container_class } - .row-content-block.second-block.content-component-block + .row-content-block.second-block.content-component-block.flex-container-block .tree-ref-holder = render 'shared/ref_switcher', destination: 'commits' + %ul.breadcrumb.repo-breadcrumb + = commits_breadcrumbs + .block-controls.hidden-xs.hidden-sm - if @merge_request.present? .control @@ -30,8 +33,6 @@ .control = link_to namespace_project_commits_path(@project.namespace, @project, @ref, { format: :atom, private_token: current_user.private_token }), title: "Commits Feed", class: 'btn' do = icon("rss") - %ul.breadcrumb.repo-breadcrumb - = commits_breadcrumbs %div{ id: dom_id(@project) } %ol#commits-list.list-unstyled.content_list |