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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -220,9 +220,9 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
pre,code {
background-color: \(temporaryCodeBlockMarkingColor.toHexString());
display: inline;
font-family: monospace;
white-space: pre;
-coretext-fontname: Menlo-Regular;
font-size: 0.9em;
-coretext-fontname: .AppleSystemUIFontMonospaced-Regular;
}
h1,h2,h3 {
font-size: 1.2em;

View File

@ -64,7 +64,7 @@ class AttributedStringBuilderTests: XCTestCase {
return
}
XCTAssertEqual(attributedString.runs.first?.uiKit.font?.fontName, "Menlo-Regular")
XCTAssertEqual(attributedString.runs.first?.uiKit.font?.fontName, ".AppleSystemUIFontMonospaced-Regular")
let string = String(attributedString.characters)

View File

@ -0,0 +1 @@
Reduce code block font size and switch to SanFrancisco Monospaced