mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1857770 [Clicking Show more books opens last book](https://bugs.launchpad.net/calibre/+bug/1857770)
This commit is contained in:
parent
4c1032ba5c
commit
834f08747a
@ -225,7 +225,7 @@ def create_more_button(more):
|
|||||||
_('Show more books'), 'cloud-download', get_more_books
|
_('Show more books'), 'cloud-download', get_more_books
|
||||||
))
|
))
|
||||||
more.lastChild.setAttribute('rel', 'next')
|
more.lastChild.setAttribute('rel', 'next')
|
||||||
set_css(more.firstChild, display='block', margin_left='auto', margin_right='auto')
|
set_css(more.firstChild, display='block', margin_left='auto', margin_right='auto', margin_top='1rem')
|
||||||
set_css(more, font_size='1.5rem', padding_top='1.5rem', margin_bottom='1.5rem', text_align='center', display='flex')
|
set_css(more, font_size='1.5rem', padding_top='1.5rem', margin_bottom='1.5rem', text_align='center', display='flex')
|
||||||
more.appendChild(E.div(
|
more.appendChild(E.div(
|
||||||
create_spinner(), '\xa0' + _('Fetching metadata for more books, please wait') + '…',
|
create_spinner(), '\xa0' + _('Fetching metadata for more books, please wait') + '…',
|
||||||
|
@ -32,8 +32,8 @@ create_button.style = build_rule('a.calibre-push-button',
|
|||||||
padding='0.5ex 1em', color=get_color('button-text'), cursor='pointer', font_size='inherit', display='inline-flex', align_items='center',
|
padding='0.5ex 1em', color=get_color('button-text'), cursor='pointer', font_size='inherit', display='inline-flex', align_items='center',
|
||||||
box_shadow='0px 2px 1px rgba(50, 50, 50, 0.75)', white_space='nowrap'
|
box_shadow='0px 2px 1px rgba(50, 50, 50, 0.75)', white_space='nowrap'
|
||||||
)
|
)
|
||||||
create_button.style += build_rule('a.calibre-push-button:hover', transform='scale(1.2)')
|
create_button.style += build_rule('a.calibre-push-button:hover', transform='scale(1.05)')
|
||||||
create_button.style += build_rule('a.calibre-push-button:active', transform='scale(2)')
|
create_button.style += build_rule('a.calibre-push-button:active', transform='scale(1.1)')
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# Spinner {{{
|
# Spinner {{{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user