mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Reduce code block font size and switch to SanFrancisco Monospaced
|
||||||
Reference in New Issue
Block a user