mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Space out covers in the cover grid evenly. Also prevent horizontal scrollbars when zooming covers.
This commit is contained in:
parent
89b6941583
commit
2fd691874b
@ -163,7 +163,7 @@ class BooksView:
|
||||
|
||||
def init_cover_grid(self):
|
||||
div = self.grid
|
||||
set_css(div, display='flex', flex_wrap='wrap', justify_content='flex-start', align_items='flex-end', align_content='flex-start', user_select='none')
|
||||
set_css(div, display='flex', flex_wrap='wrap', justify_content='space-around', align_items='flex-end', align_content='flex-start', user_select='none', overflow_x='hidden')
|
||||
div.setAttribute('class', 'cover_grid')
|
||||
|
||||
def on_cover_grid_img_err(self, err):
|
||||
|
Loading…
x
Reference in New Issue
Block a user