mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +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:
parent
e59702569f
commit
c8a9270060
1 changed files with 3 additions and 2 deletions
|
@ -413,8 +413,9 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView
|
||||||
$font_css = hsprintf(
|
$font_css = hsprintf(
|
||||||
'<style type="text/css">'.
|
'<style type="text/css">'.
|
||||||
'.PhabricatorMonospaced, '.
|
'.PhabricatorMonospaced, '.
|
||||||
'.phabricator-remarkup .remarkup-code-block '.
|
'.phabricator-remarkup .remarkup-code-block .remarkup-code, '.
|
||||||
'.remarkup-code { font: %s !important; } '.
|
'.phabricator-remarkup .remarkup-monospaced '.
|
||||||
|
'{ font: %s !important; } '.
|
||||||
'</style>',
|
'</style>',
|
||||||
$monospaced);
|
$monospaced);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue