From 07696cddb24b170bcb8dd23bd08707e131bfd800 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 May 2017 23:28:59 +0530 Subject: [PATCH] Fix incorrect rendering of page header on Go to and TOC overlay panels --- src/pyj/read_book/overlay.pyj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 98e2fcb126..2bed32be46 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -327,9 +327,9 @@ class TOCOverlay: # {{{ def show(self, container): container.style.backgroundColor = get_color('window-background') container.appendChild(E.div( - style='padding: 1ex 1em; border-bottom: solid 1px currentColor', - E.h2(self.title, style='float:left'), - E.div(svgicon('close'), style='cursor:pointer; float:right', onclick=def(event):event.preventDefault(), event.stopPropagation(), self.overlay.hide_current_panel(event);, class_='simple-link'), + style='padding: 1ex 1em; border-bottom: solid 1px currentColor; display:flex; justify-content: space-between', + E.h2(self.title), + E.div(svgicon('close'), style='cursor:pointer', onclick=def(event):event.preventDefault(), event.stopPropagation(), self.overlay.hide_current_panel(event);, class_='simple-link'), )) self.create_func(self.overlay.view.book, container, self.handle_activate)