aboutsummaryrefslogtreecommitdiff
path: root/Sources/NorgUI/Views/VerbatimBlock.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-06-18 22:05:21 +0200
committerRuben Beltran del Rio <jj@r.bdr.sh>2026-06-18 22:06:01 +0200
commitcb91a73bfc845d74c3e4d1115bce5dfed10d456d (patch)
tree62d218c4ec13f742b5de10ff442f46d152716658 /Sources/NorgUI/Views/VerbatimBlock.swift
parent3c391974907820c6385e90025faeab0d9c60bd06 (diff)
Make spacings configurable1.1.0
Diffstat (limited to 'Sources/NorgUI/Views/VerbatimBlock.swift')
-rw-r--r--Sources/NorgUI/Views/VerbatimBlock.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/NorgUI/Views/VerbatimBlock.swift b/Sources/NorgUI/Views/VerbatimBlock.swift
index 722c3f3..8f16ec0 100644
--- a/Sources/NorgUI/Views/VerbatimBlock.swift
+++ b/Sources/NorgUI/Views/VerbatimBlock.swift
@@ -7,7 +7,7 @@ struct VerbatimBlock: View {
let content: String
var body: some View {
- VStack(alignment: .leading, spacing: 4) {
+ VStack(alignment: .leading, spacing: theme.verbatimLeadingSpace) {
if let label, !label.isEmpty {
Text(label)
.font(.caption2)
@@ -17,7 +17,7 @@ struct VerbatimBlock: View {
.font(theme.codeFont)
.frame(maxWidth: .infinity, alignment: .leading)
}
- .padding(10)
+ .padding(theme.verbatimPadding)
.background(theme.codeBackground, in: RoundedRectangle(cornerRadius: 8))
}
}