Commit 97cee7e2 authored by Phil Hughes's avatar Phil Hughes

Improved spacing on mobile

parent 48726e9d
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
} }
.commit-actions { .commit-actions {
@media (min-width: $screen-md-min) { @media (min-width: $screen-sm-min) {
float: right; float: right;
margin-left: $gl-padding; margin-left: $gl-padding;
} }
...@@ -69,7 +69,11 @@ ...@@ -69,7 +69,11 @@
} }
.commit { .commit {
padding: 10px 0 10px 55px; padding: 10px 0 10px;
@media (min-width: $screen-sm-min) {
padding-left: 55px;
}
&:not(:last-child) { &:not(:last-child) {
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
...@@ -78,6 +82,7 @@ ...@@ -78,6 +82,7 @@
a, a,
button { button {
color: $gl-dark-link-color; color: $gl-dark-link-color;
vertical-align: baseline;
} }
.avatar { .avatar {
...@@ -86,8 +91,11 @@ ...@@ -86,8 +91,11 @@
.item-title { .item-title {
display: inline-block; display: inline-block;
@media (min-width: $screen-sm-min) {
max-width: 70%; max-width: 70%;
} }
}
.commit-row-description { .commit-row-description {
font-size: 14px; font-size: 14px;
......
...@@ -23,7 +23,7 @@ module CommitsHelper ...@@ -23,7 +23,7 @@ module CommitsHelper
source_email = clean(commit.send "#{options[:source]}_email".to_sym) source_email = clean(commit.send "#{options[:source]}_email".to_sym)
person_email = user.try(:email) || source_email person_email = user.try(:email) || source_email
image_tag(avatar_icon(person_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]}", width: options[:size], alt: "") image_tag(avatar_icon(person_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]} hidden-xs", width: options[:size], alt: "")
end end
def image_diff_class(diff) def image_diff_class(diff)
......
...@@ -13,10 +13,12 @@ ...@@ -13,10 +13,12 @@
.commit-row-title .commit-row-title
%span.item-title %span.item-title
= link_to_gfm commit.title, namespace_project_commit_path(project.namespace, project, commit.id), class: "commit-row-message" = link_to_gfm commit.title, namespace_project_commit_path(project.namespace, project, commit.id), class: "commit-row-message"
- if commit.status
= render_commit_status(commit, cssclass: 'visible-xs-inline')
- if commit.description? - if commit.description?
%a.text-expander.js-toggle-button ... %a.text-expander.hidden-xs.js-toggle-button ...
.commit-actions .commit-actions.hidden-xs
- if commit.status - if commit.status
= render_commit_status(commit, cssclass: 'btn btn-transparent') = render_commit_status(commit, cssclass: 'btn btn-transparent')
= clipboard_button_with_class({ clipboard_text: commit.id }, css_class: 'btn-transparent') = clipboard_button_with_class({ clipboard_text: commit.id }, css_class: 'btn-transparent')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment