Improve profile page design on mobile

This commit is contained in:
flaburgan 2014-07-21 21:31:29 +02:00 committed by Flaburgan
parent f1ab434b18
commit 1dbce6d84d
4 changed files with 39 additions and 17 deletions

View file

@ -17,6 +17,7 @@ The default for including jQuery from a CDN has changed. If you want to continue
## Refactor ## Refactor
* Redesign contacts page [#5153](https://github.com/diaspora/diaspora/pull/5153) * Redesign contacts page [#5153](https://github.com/diaspora/diaspora/pull/5153)
* Improve profile page design on mobile
## 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)

View file

@ -48,9 +48,10 @@ h3 {
position: relative; position: relative;
text-align: left; text-align: left;
padding: 10px 0; padding: 10px 0;
* {
max-width: 100%; }
min-height: 34px; min-height: 34px;
* { max-width: 100%; }
.avatar { .avatar {
@include border-radius(4px); @include border-radius(4px);
@ -151,7 +152,8 @@ h3 {
} }
} }
.stream_element, #login_form { .stream_element,
#login_form {
@include border-radius(5px); @include border-radius(5px);
@include box-shadow(0, 1px, 2px, rgba(0, 0, 0, 0.2)); @include box-shadow(0, 1px, 2px, rgba(0, 0, 0, 0.2));
@ -297,27 +299,42 @@ h3 {
} }
#author_info { #author_info {
height: 100%; margin: -10px;
position: relative; margin-bottom: 10px;
padding-top: 5px;
background-color: #fff;
border-bottom: 1px solid #aaa;
word-wrap: break-word; word-wrap: break-word;
img { img {
height: 90px; @include border-radius(4px);
width: 90px;
margin-right: 10px; height: 70px;
width: 70px;
margin: 10px;
float: left; float: left;
} }
.content { .content {
padding-left: 100px; padding-left: 90px;
}
h2 {
font-size: 20px;
line-height: 20px;
margin-bottom: 0px;
}
.description { .description {
font: { font: {
weight: normal; weight: normal;
size: small; size: small;
}; };
color: $text-grey; color: $text-grey;
}
}
.bottom_bar {
position: static;
} }
} }

View file

@ -19,7 +19,7 @@
.description .description
- if !person.tag_string.blank? && user_signed_in? - if !person.tag_string.blank? && user_signed_in?
= Diaspora::Taggable.format_tags(person.profile.tag_string) = Diaspora::Taggable.format_tags(person.profile.tag_string)
- if user_signed_in? && person == current_user.person - if person == current_user.person
%span.hover_edit %span.hover_edit
= link_to t('.edit'), edit_profile_path = link_to t('.edit'), edit_profile_path
- else - else

View file

@ -10,6 +10,10 @@
= @person.name = @person.name
%span.description %span.description
= @person.diaspora_handle = @person.diaspora_handle
.clear
.bottom_bar
- if !@person.tag_string.blank? && user_signed_in?
= Diaspora::Taggable.format_tags(@person.profile.tag_string)
.span12.profile_stream .span12.profile_stream
- if @stream.stream_posts.length > 0 - if @stream.stream_posts.length > 0