diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-16 11:42:22 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-16 11:45:02 -0600 |
commit | e5ed8c5c2105571230562da76e64cda502f38495 (patch) | |
tree | 229f2f31a1a9c8219190877034ce86b389a21ed8 /app | |
parent | 666b5651689d3a5a7e6b2e7c18c7c818c81ead84 (diff) | |
download | gitlab-ce-e5ed8c5c2105571230562da76e64cda502f38495.tar.gz |
Display Star and Fork on mobile, fix #18537.star-fork-mobile
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/framework/mobile.scss | 13 | ||||
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/mobile.scss b/app/assets/stylesheets/framework/mobile.scss index d4e5cc819a4..c74682dfef4 100644 --- a/app/assets/stylesheets/framework/mobile.scss +++ b/app/assets/stylesheets/framework/mobile.scss @@ -52,6 +52,19 @@ .git-clone-holder { display: none; } + + // Display Star and Fork buttons without counters on mobile. + .project-action-buttons { + display: block; + + .count-buttons .btn { + margin: 0 10px; + } + + .count-buttons .count-with-arrow { + display: none; + } + } } .project-stats { diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 2b19ee93eea..4e863563b4c 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -21,7 +21,7 @@ = link_to project_path(forked_from_project) do = forked_from_project.namespace.try(:name) - .project-repo-buttons + .project-repo-buttons.project-action-buttons .count-buttons = render 'projects/buttons/star' = render 'projects/buttons/fork' |