From cb91a73bfc845d74c3e4d1115bce5dfed10d456d Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 18 Jun 2026 22:05:21 +0200 Subject: Make spacings configurable --- Sources/NorgUI/Views/VerbatimBlock.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Sources/NorgUI/Views/VerbatimBlock.swift') 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)) } } -- cgit