Dont use simple-link for next buttons

This commit is contained in:
Kovid Goyal 2019-09-26 13:26:29 +05:30
parent 0641384bc7
commit 6db937bca6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -452,9 +452,9 @@ def render_book(container_id, book_id):
def prev_next_button(is_prev): def prev_next_button(is_prev):
return E.div( return E.div(
style=f'border-radius: {border_radius//5}px; background-color:rgba({bsrgb[0]}, {bsrgb[1]}, {bsrgb[2]}, 0.75);', style=f'cursor: pointer; border-radius: {border_radius//5}px; background-color:rgba({bsrgb[0]}, {bsrgb[1]}, {bsrgb[2]}, 0.75);',
title=_('Previous book') if is_prev else _('Next book'), title=_('Previous book') if is_prev else _('Next book'),
class_='simple-link next-book-button', class_='next-book-button',
svgicon('chevron-left' if is_prev else 'chevron-right'), svgicon('chevron-left' if is_prev else 'chevron-right'),
onclick=next_book.bind(None, (-1 if is_prev else 1)) onclick=next_book.bind(None, (-1 if is_prev else 1))
) )