Merge pull request #5791 from SansPseudoFix/5745-Conversation-pagination-design-is-broken

Fix for 5745 - conversation pagination design is broken
This commit is contained in:
Steffen van Bergerem 2015-03-26 20:03:10 +01:00
commit b69239ed2f
5 changed files with 34 additions and 2 deletions

View file

@ -157,6 +157,7 @@ diaspora.yml file**. The existing settings from 0.4.x and before will not work a
* Display correct error message for too long tags [#5783](https://github.com/diaspora/diaspora/pull/5783)
* Fix displaying reshares in the stream on mobile [#5790](https://github.com/diaspora/diaspora/pull/5790)
* Remove bottom margin from lists that are the last element of a post. [#5721](https://github.com/diaspora/diaspora/pull/5721)
* Fix pagination design on conversations page [#5791](https://github.com/diaspora/diaspora/pull/5791)
## Features
* Don't pull jQuery from a CDN by default [#5105](https://github.com/diaspora/diaspora/pull/5105)

View file

@ -180,6 +180,21 @@
a:hover {
text-decoration: none;
}
.pagination {
margin-left: auto;
margin-right: auto;
text-align: center;
.disabled a {
background: $background-grey;
}
}
}
}
@media (max-width: 1354px) {
#left_pane #conversation_inbox .pagination ul > li > a {
padding: 4px 7px;
}
}

View file

@ -847,6 +847,22 @@ form#new_user.new_user input.btn {
text-shadow: 1px 1px 20px rgb(126, 240, 77);
}
#conversation_inbox {
.pagination {
margin-left: auto;
margin-right: auto;
text-align: center;
ul > li > a {
padding: 4px 8px;
}
.disabled a{
background: $background-grey;
}
}
}
input#user_password, #user_username, #user_password_confirmation, #user_email {
height: 30px;
}

View file

@ -21,7 +21,7 @@
- else
#no_conversations
= t('.no_messages')
= will_paginate @conversations, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
= will_paginate @conversations, :previous_label => '«', :next_label => '»', :inner_window => 1, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
.span8
- if @conversation

View file

@ -27,4 +27,4 @@
%i
= t('.no_messages')
= will_paginate @conversations, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
= will_paginate @conversations, :previous_label => '«', :next_label => '»', :inner_window => 1, :outer_window => 0, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer