Workaround for bug in firefox flexbox

This commit is contained in:
Kovid Goyal 2016-02-13 17:53:24 +05:30
parent d800f68b62
commit cdf51a4cba

View File

@ -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
)) ))