mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Live CSS: Tighten the line spacing between properties
This commit is contained in:
parent
dec4720fb6
commit
0ddded708e
@ -130,7 +130,7 @@ class Declaration(QWidget):
|
|||||||
def do_layout(self):
|
def do_layout(self):
|
||||||
fm = self.fontMetrics()
|
fm = self.fontMetrics()
|
||||||
bounding_rect = lambda text: fm.boundingRect(0, 0, 10000, 10000, Cell.FLAGS, text)
|
bounding_rect = lambda text: fm.boundingRect(0, 0, 10000, 10000, Cell.FLAGS, text)
|
||||||
line_spacing = 5
|
line_spacing = 2
|
||||||
side_margin = Cell.SIDE_MARGIN
|
side_margin = Cell.SIDE_MARGIN
|
||||||
self.rows = []
|
self.rows = []
|
||||||
ypos = line_spacing + (1 if self.is_first else 0)
|
ypos = line_spacing + (1 if self.is_first else 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user