Fix pagination break #458
2 changed files with 5 additions and 0 deletions
|
@ -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)}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue