File tree Expand file tree Collapse file tree
Core/Sources/SuggestionWidget Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments