Merge pull request #5521 from arlogn/profile-photos-as-thumbnails
profile photos as thumbnails
This commit is contained in:
commit
f37a018b0e
4 changed files with 44 additions and 11 deletions
|
|
@ -95,6 +95,7 @@ diaspora.yml file**. The existing settings from 0.4.x and before will not work a
|
||||||
* Use sentence case consistently throughout UI [#5588](https://github.com/diaspora/diaspora/pull/5588)
|
* Use sentence case consistently throughout UI [#5588](https://github.com/diaspora/diaspora/pull/5588)
|
||||||
* Hide sign up button when registrations are disabled [#5612](https://github.com/diaspora/diaspora/pull/5612)
|
* Hide sign up button when registrations are disabled [#5612](https://github.com/diaspora/diaspora/pull/5612)
|
||||||
* Standardize capitalization throughout the UI [#5588](https://github.com/diaspora/diaspora/pull/5588)
|
* Standardize capitalization throughout the UI [#5588](https://github.com/diaspora/diaspora/pull/5588)
|
||||||
|
* Display photos on the profile page as thumbnails [#5521](https://github.com/diaspora/diaspora/pull/5521)
|
||||||
|
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
* orca cannot see 'Add Contact' button [#5158](https://github.com/diaspora/diaspora/pull/5158)
|
* orca cannot see 'Add Contact' button [#5158](https://github.com/diaspora/diaspora/pull/5158)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
#main_stream .stream_element,
|
#main_stream .stream_element,
|
||||||
#main_stream > div > .photo {
|
#main_stream > div > .photo {
|
||||||
border-bottom: 1px solid $border-grey;
|
|
||||||
padding: 10px;
|
|
||||||
|
|
||||||
& > .media {
|
& > .media {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
@ -12,7 +9,42 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#main_stream > div > .photo {
|
||||||
|
& > .media {
|
||||||
|
overflow: visible;
|
||||||
|
> .bd {
|
||||||
|
position: relative;
|
||||||
|
overflow: inherit;
|
||||||
|
> .controls {
|
||||||
|
position: absolute;
|
||||||
|
right: 6px;
|
||||||
|
top: 1px;
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:hover > .bd > .controls { background: #fff; }
|
||||||
|
}
|
||||||
|
.thumbnail {
|
||||||
|
height: 200px;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 0 5px 10px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 200px;
|
||||||
|
border: 1px solid $border-grey;
|
||||||
|
background: #fefefe;
|
||||||
|
box-shadow: 3px 3px 2px #eee;
|
||||||
|
img {
|
||||||
|
&.big_photo { max-height: 200px; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#main_stream .stream_element {
|
#main_stream .stream_element {
|
||||||
|
border-bottom: 1px solid $border-grey;
|
||||||
|
padding: 10px;
|
||||||
& > .media {
|
& > .media {
|
||||||
& > .img > .avatar.small {
|
& > .img > .avatar.small {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="media">
|
<div class="media span4">
|
||||||
<div class="bd">
|
<div class="bd">
|
||||||
{{#if loggedIn}}
|
{{#if loggedIn}}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
@ -20,10 +20,10 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<a href="#" class="photo-link">
|
<div class="thumbnail">
|
||||||
<img src="{{sizes.large}}" class="photo big_photo" data-small-photo="{{sizes.small}}" data-full-photo="{{sizes.large}}" rel="lightbox">
|
<a href="#" class="photo-link">
|
||||||
</a>
|
<img src="{{sizes.large}}" class="photo big_photo" data-small-photo="{{sizes.small}}" data-full-photo="{{sizes.large}}" rel="lightbox">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -7,7 +7,7 @@ And /^I mark myself as safe for work$/ do
|
||||||
end
|
end
|
||||||
|
|
||||||
When(/^I delete a photo$/) do
|
When(/^I delete a photo$/) do
|
||||||
find('.photo.loaded').hover
|
find('.photo.loaded .thumbnail', :match => :first).hover
|
||||||
find('.delete', :match => :first).click
|
find('.delete', :match => :first).click
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue