mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1941693 [Remove style button text is not in the middle](https://bugs.launchpad.net/calibre/+bug/1941693)
This commit is contained in:
parent
a62286ad4a
commit
7697daf2ce
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user