From cdf51a4cbaa863bae1a8f8b7d10c498ae7e5d269 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 13 Feb 2016 17:53:24 +0530 Subject: [PATCH] Workaround for bug in firefox flexbox --- src/pyj/book_list/book_details.pyj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index b716ac23da..aadd370764 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -101,13 +101,13 @@ class BookDetailsPanel: 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(' & '), - 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) c = self.container c.appendChild(E.div( - style='display:flex; flex-wrap: wrap; align-items:flex-start; padding: 1ex 1em', - E.div(style='margin-right: 1em'), + style='display:block; padding: 1ex 1em', + E.div(style='margin-right: 1em; float:left'), img ))