Skip to content

Commit

Permalink
Merge pull request diaspora#3990 from movilla/mismatch_author_name
Browse files Browse the repository at this point in the history
Wrap text if too long in mobile notifications
  • Loading branch information
jhass committed Feb 22, 2013
2 parents f788f34 + c52a878 commit 19b9b0e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Include our custom fileuploader on the mobile site too. [#3994](https://github.com/diaspora/diaspora/pull/3994)
* Move custom splash page logic into the controller [#3991](https://github.com/diaspora/diaspora/issues/3991)
* Fixed removing images from publisher on the profile and tags pages. [#3995](https://github.com/diaspora/diaspora/pull/3995)
* Wrap text if too long in mobile notifications. [#3990](https://github.com/diaspora/diaspora/pull/3990)

# 0.0.3.0

Expand Down
12 changes: 10 additions & 2 deletions app/assets/stylesheets/mobile.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ body {
font-weight: bold;
}
margin-bottom: 2px;
height: 45px;
white-space: nowrap;
word-wrap: break-word;
overflow: hidden;
.time_notif {
font-weight: normal;
float: right;
padding-right: 5px;
}
}

> .content,
Expand Down Expand Up @@ -165,6 +169,10 @@ body {
#main_stream {
margin-left: -10px;
margin-right: -10px;
.from {
white-space: nowrap;
overflow: hidden;
}
}

.more-link {
Expand Down
7 changes: 3 additions & 4 deletions app/views/notifications/index.mobile.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
%ul.notifications_for_day
- notes.each do |note|
.stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : 'read'}"}

.content
=person_image_link(note.actors.last)
%span.from
= notification_message_for(note)
.time
.from
= notification_message_for(note)
.time_notif
= time_ago_in_words(note.created_at)

= will_paginate @notifications, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer

0 comments on commit 19b9b0e

Please sign in to comment.