mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-10-08 09:11:13 +02:00
fix(report): pin the cover title spacing to the design
Paragraph spacing scaled with the 46pt title and pushed it and the target about 1.5cm lower than the design. The title now sits in a zero-spacing block, so the gaps are exactly the v() values (4.3cm above, 1.35cm below). Verified with Typst 0.14.2 and built-in fonts only: the cover matches the reference within about 0.05cm, a long target URL wraps at a slash, the optional Application field and partial status render, and the full report compiles with no warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6f306b5fcb
commit
27645df005
1 file changed
+8
-10
@@ -239,16 +239,14 @@
|
||||
#v(0.5cm)
|
||||
#line(length: 100%, stroke: 0.3pt + rule)
|
||||
|
||||
#v(3.6cm)
|
||||
#set par(leading: 0.4em)
|
||||
#text(size: 46pt, weight: "bold", fill: ink)[
|
||||
Security\
|
||||
Assessment\
|
||||
Report
|
||||
]
|
||||
#set par(leading: 0.7em)
|
||||
|
||||
#v(0.9cm)
|
||||
// The title sits in a zero-spacing block so the gaps around it are exactly
|
||||
// the v() values (paragraph spacing would otherwise scale with the 46pt text).
|
||||
#v(4.3cm)
|
||||
#block(spacing: 0pt, {
|
||||
set par(leading: 0.4em)
|
||||
text(size: 46pt, weight: "bold", fill: ink)[Security\ Assessment\ Report]
|
||||
})
|
||||
#v(1.35cm)
|
||||
#cover-field("Target", text(size: 12pt, fill: ink)[#data.meta.target])
|
||||
#if "application" in data.meta and data.meta.application != none [
|
||||
#v(0.5cm)
|
||||
|
||||
Reference in new issue
Block a user