Merge pull request #458 from btzr-io/patch-4

Fix pagination break
This commit is contained in:
Jeremy Kauffman 2017-08-10 19:50:20 -04:00 committed by GitHub
commit 577760ca82
2 changed files with 5 additions and 0 deletions

View file

@ -83,6 +83,7 @@ class ChannelPage extends React.PureComponent {
pageClassName="pagination__item"
previousClassName="pagination__item pagination__item--previous"
nextClassName="pagination__item pagination__item--next"
breakClassName="pagination__item pagination__item--break"
marginPagesDisplayed={2}
onPageChange={e => this.changePage(e.selected + 1)}
initialPage={parseInt(page - 1)}

View file

@ -26,6 +26,10 @@
font-size: 1.2em;
}
.pagination__item--break {
padding: 0 $spacing-vertical * 2 / 3;
}
.pagination__item--selected {
color: white;
background: $color-primary;