Merge pull request #2270 from fermionic/allow-photo-views-in-mobile

re-enable photo viewing on mobile
This commit is contained in:
Daniel Grippi 2011-11-28 11:03:13 -08:00
commit 161d9d527c
2 changed files with 44 additions and 1 deletions

View file

@ -9,7 +9,7 @@
- if post.photos.size > 1
.additional_photo_count
= "+ #{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?
= image_tag post.image_url

View file

@ -425,6 +425,49 @@ body {
margin: {
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 {
box-shadow: inset 0 -1px 3px #111;
margin-top: -10px;