Switch to system monospaced font and reduce its size so it stops looking bigger than the rest of the messages

This commit is contained in:
Stefan Ceriu
2022-10-26 18:05:13 +03:00
committed by GitHub
parent df633030c3
commit 2da3395145
3 changed files with 4 additions and 3 deletions
@@ -220,9 +220,9 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
pre,code { pre,code {
background-color: \(temporaryCodeBlockMarkingColor.toHexString()); background-color: \(temporaryCodeBlockMarkingColor.toHexString());
display: inline; display: inline;
font-family: monospace;
white-space: pre; white-space: pre;
-coretext-fontname: Menlo-Regular; font-size: 0.9em;
-coretext-fontname: .AppleSystemUIFontMonospaced-Regular;
} }
h1,h2,h3 { h1,h2,h3 {
font-size: 1.2em; font-size: 1.2em;
@@ -64,7 +64,7 @@ class AttributedStringBuilderTests: XCTestCase {
return return
} }
XCTAssertEqual(attributedString.runs.first?.uiKit.font?.fontName, "Menlo-Regular") XCTAssertEqual(attributedString.runs.first?.uiKit.font?.fontName, ".AppleSystemUIFontMonospaced-Regular")
let string = String(attributedString.characters) let string = String(attributedString.characters)
+1
View File
@@ -0,0 +1 @@
Reduce code block font size and switch to SanFrancisco Monospaced