mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +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:
parent
df633030c3
commit
2da3395145
@ -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;
|
||||
|
@ -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)
|
||||
|
||||
|
1
changelog.d/pr-267.change
Normal file
1
changelog.d/pr-267.change
Normal file
@ -0,0 +1 @@
|
||||
Reduce code block font size and switch to SanFrancisco Monospaced
|
Loading…
x
Reference in New Issue
Block a user