גודל הקוד לא משתנה כשאתה משנה את גודל הטקסט בהגדרות

Screenshots taken once with the text size set to largest and once to smallest.


As you can see, hide_texts has always the same size.

It would be great if it could dynamically adjust with the text around it instead of always being 14px.

5 לייקים

I noticed that the fixed font size of code is also a problem on category descriptions shown next to the category icon.


I don’t remember in which topic, but somewhere in a Documentation topic I recently noticed that this also affects <small>.

This code isn’t small

<small> This `code` isn't small</small>
2 לייקים

This was an intentional change fixing other issues:

https://github.com/discourse/discourse/pull/30936

Maybe using REMs is the inbetween way

Example with large text

And smallest text render right now

But, the problem of code inside a <small> tag wont be fixed because that would actually need EMs to work, so that needs an exception.

Both are done here:

https://github.com/discourse/discourse/pull/36559

לייק 1