mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Workaround for bug in firefox flexbox
This commit is contained in:
parent
d800f68b62
commit
cdf51a4cba
@ -101,13 +101,13 @@ class BookDetailsPanel:
|
|||||||
alt = str.format(_('{} by {}'), metadata['title'], metadata['authors'].join(' & '))
|
alt = str.format(_('{} by {}'), metadata['title'], metadata['authors'].join(' & '))
|
||||||
img = E.img(
|
img = E.img(
|
||||||
src=cover_url, alt=alt, title=alt, data_title=metadata['title'], data_authors=metadata['authors'].join(' & '),
|
src=cover_url, alt=alt, title=alt, data_title=metadata['title'], data_authors=metadata['authors'].join(' & '),
|
||||||
style='max-width: 45vw; max-height: 93vh; display: block; width:auto; height:auto'
|
style='max-width: 45vw; max-height: 93vh; display: block; width:auto; height:auto; float:right'
|
||||||
)
|
)
|
||||||
img.onerror = self.on_img_err.bind(self)
|
img.onerror = self.on_img_err.bind(self)
|
||||||
c = self.container
|
c = self.container
|
||||||
c.appendChild(E.div(
|
c.appendChild(E.div(
|
||||||
style='display:flex; flex-wrap: wrap; align-items:flex-start; padding: 1ex 1em',
|
style='display:block; padding: 1ex 1em',
|
||||||
E.div(style='margin-right: 1em'),
|
E.div(style='margin-right: 1em; float:left'),
|
||||||
img
|
img
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user