Fix Bootstrap 3 regressions

* mobile notification padding
* width of mobile notifications and stream page
This commit is contained in:
Steffen van Bergerem 2015-06-07 12:41:50 +02:00
parent ab1e879cc2
commit 4f9ac8dd96
2 changed files with 20 additions and 20 deletions

View file

@ -1,12 +1,11 @@
.col-md-12
%h3
= t('.notifications')
= t(".notifications")
.right
.pull-right
-if params[:type]
= link_to t('.mark_all_shown_as_read'), read_all_notifications_path(type: params[:type] ), class: 'btn btn-default'
= link_to t(".mark_all_shown_as_read"), read_all_notifications_path(type: params[:type] ), class: "btn btn-default"
-else
= link_to t('.mark_all_as_read'), read_all_notifications_path, class: 'btn btn-default'
= link_to t(".mark_all_as_read"), read_all_notifications_path, class: "btn btn-default"
%ul.notifications
- @group_days.each do |date, notes|
%li
@ -15,8 +14,9 @@
= locale_date(date)
%ul.notifications_for_day
- notes.each do |note|
.stream_element{:data=>{guid: note.id}, class: "#{note.unread ? 'unread' : 'read'}"}
.content.from.media
.stream_element{data: {guid: note.id}, class: "#{note.unread ? "unread" : "read"}"}
.content.from
.media
.media-left
= person_image_link(note.actors.last, size: :thumb_small, class: "media-object")
.media-body

View file

@ -2,6 +2,6 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
#main_stream.stream.col-md-12
#main_stream.stream
= render 'shared/stream', posts: @stream.stream_posts
= render 'shared/stream_more_button'