aboutsummaryrefslogtreecommitdiff
path: root/Sources/NorgUI/Views/VerbatimBlock.swift
diff options
context:
space:
mode:
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))
}
}