1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

Use user's preferred font for inline code snippets too

Summary:
Use user's preferred font for inline code snippets,
like we already do for block code snippets.

Test Plan:
Set a non-default font in Settings → Display Preferences → Monospaced Font.
Make sure that it applies to both single-tick (inline) and triple-tick (block)
code snippets in comments.

For example, enter:

    42px Tahoma

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15682

Differential Revision: https://we.phorge.it/D25486
This commit is contained in:
Bartosz Dziewoński 2023-12-06 16:50:35 +01:00
parent e59702569f
commit c8a9270060

View file

@ -413,8 +413,9 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView
$font_css = hsprintf(
'<style type="text/css">'.
'.PhabricatorMonospaced, '.
'.phabricator-remarkup .remarkup-code-block '.
'.remarkup-code { font: %s !important; } '.
'.phabricator-remarkup .remarkup-code-block .remarkup-code, '.
'.phabricator-remarkup .remarkup-monospaced '.
'{ font: %s !important; } '.
'</style>',
$monospaced);
}