fixed (sort of) values / desc spacing

This commit is contained in:
Louis Heredero 2024-05-19 12:16:28 +02:00
parent 5e0972037f
commit e510bebc33
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
#let config( #let config(
default-font-family: "Ubuntu Mono", default-font-family: "Ubuntu Mono",
default-font-size: 1em, default-font-size: 15pt,
italic-font-family: "Ubuntu Mono", italic-font-family: "Ubuntu Mono",
italic-font-size: 0.8em, italic-font-size: 12pt,
background: white, background: white,
text-color: black, text-color: black,
link-color: black, link-color: black,

View File

@ -37,7 +37,7 @@
if fill != none { if fill != none {
content-params.insert("fill", fill) content-params.insert("fill", fill)
content-params.insert("frame", "rect") content-params.insert("frame", "rect")
content-params.insert("padding", 4pt) content-params.insert("padding", (4pt, 0pt))
} }
draw.content( draw.content(
@ -128,7 +128,8 @@
italic: true, italic: true,
size: config.italic-font-size size: config.italic-font-size
) )
desc-y += 8 // TODO: change this
desc-y += config.italic-font-size / 1.2pt
} }
return (shapes, desc-x, desc-y) return (shapes, desc-x, desc-y)
@ -171,8 +172,7 @@
anchor: "west" anchor: "west"
) )
// TODO: change this desc-y += config.default-font-size / 0.75pt
desc-y += 18
if range_.values != none and range_.depends-on == none { if range_.values != none and range_.depends-on == none {
let shapes_ let shapes_