Merge pull request #2270 from fermionic/allow-photo-views-in-mobile
re-enable photo viewing on mobile
This commit is contained in:
commit
161d9d527c
2 changed files with 44 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
- if post.photos.size > 1
|
- if post.photos.size > 1
|
||||||
.additional_photo_count
|
.additional_photo_count
|
||||||
= "+ #{post.photos.size-1}"
|
= "+ #{post.photos.size-1}"
|
||||||
= image_tag post.photos.first.url(:thumb_large), :class => "stream-photo big-stream-photo"
|
= link_to (image_tag post.photos.first.url(:thumb_large), :class => "stream-photo big-stream-photo"), photo_path(post.photos.first), :class => "stream-photo-link"
|
||||||
- elsif post.activity_streams?
|
- elsif post.activity_streams?
|
||||||
= image_tag post.image_url
|
= image_tag post.image_url
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -425,6 +425,49 @@ body {
|
||||||
margin: {
|
margin: {
|
||||||
top: -2px; }; }
|
top: -2px; }; }
|
||||||
|
|
||||||
|
#show_content {
|
||||||
|
padding: 12px;
|
||||||
|
padding-bottom: 24px;
|
||||||
|
border: {
|
||||||
|
bottom: 1px solid #bbb; };
|
||||||
|
background: {
|
||||||
|
color: #fff; };
|
||||||
|
|
||||||
|
font: {
|
||||||
|
size: larger; };
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%; }
|
||||||
|
|
||||||
|
.photo {
|
||||||
|
text-align: center; }
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
font: {
|
||||||
|
size: smaller; };
|
||||||
|
}
|
||||||
|
|
||||||
|
&.photo {
|
||||||
|
background: {
|
||||||
|
color: #000; };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#photo_controls {
|
||||||
|
margin: {
|
||||||
|
bottom: -42px; };
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
color: white !important;
|
||||||
|
font: {
|
||||||
|
size: 26pt; };
|
||||||
|
text: {
|
||||||
|
shadow: 0 1px 2px #333;
|
||||||
|
decoration: none; };
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#author_info.profile {
|
#author_info.profile {
|
||||||
box-shadow: inset 0 -1px 3px #111;
|
box-shadow: inset 0 -1px 3px #111;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue