mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
CS: Add a border-radius for images in the cover grid
This commit is contained in:
parent
179a274e86
commit
a0f5dc94fa
@ -176,7 +176,7 @@ class BooksView:
|
|||||||
metadata = self.interface_data['metadata'][book_id]
|
metadata = self.interface_data['metadata'][book_id]
|
||||||
alt = str.format(_('{} by {}'), metadata['title'], metadata['authors'].join(' & '))
|
alt = str.format(_('{} by {}'), metadata['title'], metadata['authors'].join(' & '))
|
||||||
img = E.img(src=cover_url, alt=alt, title=alt, data_title=metadata['title'], data_authors=metadata['authors'].join(' & '),
|
img = E.img(src=cover_url, alt=alt, title=alt, data_title=metadata['title'], data_authors=metadata['authors'].join(' & '),
|
||||||
style='max-width: 100%; max-height: 100%; display: block; width:auto; height:auto')
|
style='max-width: 100%; max-height: 100%; display: block; width:auto; height:auto; border-radius: 10px')
|
||||||
img.onerror = self.on_cover_grid_img_err.bind(self)
|
img.onerror = self.on_cover_grid_img_err.bind(self)
|
||||||
|
|
||||||
ans = E.div(
|
ans = E.div(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user