Fix #1941693 [Remove style button text is not in the middle](https://bugs.launchpad.net/calibre/+bug/1941693)

This commit is contained in:
Kovid Goyal 2021-08-26 13:14:44 +05:30
parent a62286ad4a
commit 7697daf2ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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]: