mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix rendering of banner cover style at small scale factors
This commit is contained in:
parent
5164e4b005
commit
95471f746a
@ -371,7 +371,7 @@ class Banner(Style):
|
||||
|
||||
def __call__(self, painter, rect, color_theme, title_block, subtitle_block, footer_block):
|
||||
painter.fillRect(rect, self.color1)
|
||||
top = title_block.position.y + 10
|
||||
top = title_block.position.y + 2
|
||||
extra_spacing = subtitle_block.line_spacing // 2 if subtitle_block.line_spacing else title_block.line_spacing // 3
|
||||
height = title_block.height + subtitle_block.height + extra_spacing + title_block.leading
|
||||
right = rect.right() - self.hmargin
|
||||
|
Loading…
x
Reference in New Issue
Block a user