diff options
author | Takuya Noguchi <tak.noguchi.iridge@gmail.com> | 2017-06-19 15:28:11 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-11-01 19:34:46 +0300 |
commit | 78f779b952c156837a3126945580257e7c7d8b86 (patch) | |
tree | 2ba8ecee29b8f48bb072b2dd6309d5027ea9f75e /app | |
parent | 0b8b631ad9e914918e51bdb08ad56cd85c333847 (diff) |
Mobile-friendly table on Admin Runners
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/pages/runners.scss | 7 | ||||
-rw-r--r-- | app/views/admin/runners/index.html.haml | 33 |
2 files changed, 24 insertions, 16 deletions
diff --git a/app/assets/stylesheets/pages/runners.scss b/app/assets/stylesheets/pages/runners.scss index 6cac37a4e28..5fb97b13470 100644 --- a/app/assets/stylesheets/pages/runners.scss +++ b/app/assets/stylesheets/pages/runners.scss @@ -50,3 +50,10 @@ font-size: 11px; } } + +@media (max-width: $screen-md-max) { + .runners-content { + width: 100%; + overflow: auto; + } +} diff --git a/app/views/admin/runners/index.html.haml b/app/views/admin/runners/index.html.haml index 76f4a817744..4965dffab9d 100644 --- a/app/views/admin/runners/index.html.haml +++ b/app/views/admin/runners/index.html.haml @@ -52,22 +52,23 @@ %br - if @runners.any? - .table-holder - %table.table - %thead - %tr - %th Type - %th Runner token - %th Description - %th Version - %th Projects - %th Jobs - %th Tags - %th= link_to 'Last contact', admin_runners_path(params.slice(:search).merge(sort: 'contacted_asc')) - %th + .runners-content + .table-holder + %table.table + %thead + %tr + %th Type + %th Runner token + %th Description + %th Version + %th Projects + %th Jobs + %th Tags + %th Last contact + %th - - @runners.each do |runner| - = render "admin/runners/runner", runner: runner - = paginate @runners, theme: "gitlab" + - @runners.each do |runner| + = render "admin/runners/runner", runner: runner + = paginate @runners, theme: "gitlab" - else .nothing-here-block No runners found |