The text in codeblocks seem small er than usual. For multiline codeblocks, the line spacing between lines also seem less.
Was something changed?
For example:
Heliosurge
(Dan DeMontmorency)
November 2, 2024, 5:06am
2
Recent update will see if can find link — found it in Daily Summary
We’re experimenting with reducing the size of text and the line height, and increasing the height of code blocks, in order to improve readability of larger blocks of code. This is mostly problematic for large blocks of code exceeding 20 or more lines. The result is more code can be seen in the regular viewport.
Before
[image]
After
[image]
The change has been made here:
https://github.com/discourse-org/design-experiments/pull/75
5 Likes
Why do preformatted code sizes seem even smaller
Now: Preformatted text
Code here
Miniscule!
CocoQuark
(Coconut Flavored Quark)
January 21, 2025, 1:04pm
4
NateDhaliwal:
This screenshot doesn’t give any information on the font-size compared to other texts.
Are you sure?
The code highlight file hasn’t changed since the last improvement linked by Dan:
That was an old screenshot, and is cropped.
Actually, it seems to be on mobile, not desktop.
CocoQuark
(Coconut Flavored Quark)
January 21, 2025, 1:12pm
6
I looked at the font-size on both mobile and desktop, and they have the same value (.875em)
Huh, that’s odd. Now the codeblocks are much more rounded too!