mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont use simple-link for next buttons
This commit is contained in:
parent
0641384bc7
commit
6db937bca6
@ -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))
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user