summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-19 10:25:12 -0500
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-28 09:00:30 -0500
commit2949f9b453d554bd1d9343df255b47bb3f98d182 (patch)
treea4165873ebfee642a50c507ae040448d502ffde3
parent002670ec73604feaf1e675ce98157bfb3d5709c9 (diff)
downloadgitlab-ce-2949f9b453d554bd1d9343df255b47bb3f98d182.tar.gz
Fix mobile view
-rw-r--r--app/assets/stylesheets/pages/commit.scss5
-rw-r--r--app/views/projects/commit/_commit_box.html.haml4
2 files changed, 3 insertions, 6 deletions
diff --git a/app/assets/stylesheets/pages/commit.scss b/app/assets/stylesheets/pages/commit.scss
index 16e70bf9e4c..8ecf7fcb96d 100644
--- a/app/assets/stylesheets/pages/commit.scss
+++ b/app/assets/stylesheets/pages/commit.scss
@@ -34,10 +34,7 @@
&.commit-info-row-header {
line-height: 34px;
padding: 10px 0;
-
- @media (min-width: $screen-sm-min) {
- margin-bottom: 0;
- }
+ margin-bottom: 0;
.commit-options-dropdown-caret {
@media (max-width: $screen-sm) {
diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml
index 47f45ae6b1a..c8a9358fa64 100644
--- a/app/views/projects/commit/_commit_box.html.haml
+++ b/app/views/projects/commit/_commit_box.html.haml
@@ -1,7 +1,7 @@
.commit-info-row.commit-info-row-header
%span.hidden-xs.hidden-sm Commit
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace js-details-short"
- = link_to("#", class: "js-details-expand") do
+ = link_to("#", class: "js-details-expand hidden-xs hidden-sm") do
%span.text-expander
\...
%span.js-details-content.hide
@@ -9,7 +9,7 @@
= clipboard_button(clipboard_text: @commit.id)
%span.hidden-xs authored
#{time_ago_with_tooltip(@commit.authored_date)}
- %span.hidden-xs by
+ %span by
= author_avatar(@commit, size: 24)
%strong
= commit_author_link(@commit, avatar: true, size: 24)