diff --git a/Changelog.md b/Changelog.md index dde824983..67b85b4c3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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) * 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) +* Display photos on the profile page as thumbnails [#5521](https://github.com/diaspora/diaspora/pull/5521) ## Bug fixes * orca cannot see 'Add Contact' button [#5158](https://github.com/diaspora/diaspora/pull/5158) diff --git a/app/assets/stylesheets/stream_element.css.scss b/app/assets/stylesheets/stream_element.css.scss index 33a2f031f..6838d39da 100644 --- a/app/assets/stylesheets/stream_element.css.scss +++ b/app/assets/stylesheets/stream_element.css.scss @@ -1,8 +1,5 @@ #main_stream .stream_element, #main_stream > div > .photo { - border-bottom: 1px solid $border-grey; - padding: 10px; - & > .media { 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 { + border-bottom: 1px solid $border-grey; + padding: 10px; & > .media { & > .img > .avatar.small { height: 50px; diff --git a/app/assets/templates/photo_tpl.jst.hbs b/app/assets/templates/photo_tpl.jst.hbs index 534b9b998..f642578f4 100644 --- a/app/assets/templates/photo_tpl.jst.hbs +++ b/app/assets/templates/photo_tpl.jst.hbs @@ -1,4 +1,4 @@ -