Skip to content

Commit bde63ac

Browse files
committed
Update markdown theme
1 parent 176b5d6 commit bde63ac

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Core/Sources/SuggestionWidget/Styles.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,21 @@ extension MarkdownUI.Theme {
6262
}
6363
.codeBlock { configuration in
6464
configuration.label
65-
.padding()
66-
.padding(.trailing)
67-
.background {
68-
RoundedRectangle(cornerRadius: 6, style: .continuous)
69-
.fill(Color(nsColor: .textBackgroundColor).opacity(0.7))
65+
.relativeLineSpacing(.em(0.225))
66+
.markdownTextStyle {
67+
FontFamilyVariant(.monospaced)
68+
FontSize(.em(0.85))
7069
}
70+
.padding(16)
71+
.background(Color(nsColor: .textBackgroundColor).opacity(0.7))
72+
.clipShape(RoundedRectangle(cornerRadius: 6))
7173
.overlay(alignment: .topTrailing) {
7274
CopyButton {
7375
NSPasteboard.general.clearContents()
7476
NSPasteboard.general.setString(configuration.content, forType: .string)
7577
}
7678
}
77-
.padding(.bottom)
79+
.markdownMargin(top: 0, bottom: 16)
7880
}
7981
}
8082
}

0 commit comments

Comments
 (0)