From 7697daf2cef75fdfd9e4686c572c5477043aab9c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 Aug 2021 13:14:44 +0530 Subject: [PATCH] Fix #1941693 [Remove style button text is not in the middle](https://bugs.launchpad.net/calibre/+bug/1941693) --- src/pyj/read_book/highlights.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/highlights.pyj b/src/pyj/read_book/highlights.pyj index ed27594af2..fbba897d5f 100644 --- a/src/pyj/read_book/highlights.pyj +++ b/src/pyj/read_book/highlights.pyj @@ -441,7 +441,7 @@ class EditNotesAndColors: # {{{ def set_visibility_of_remove_button(self): c = self.container item = c.querySelector('.current-swatch.custom-style') - c.querySelector('.remove-custom-color').style.display = 'block' if item else 'none' + c.querySelector('.remove-custom-color').style.display = 'flex' if item else 'none' def add_color(self, hs, at_start): if self.seen_colors[hs.key]: