From c8a927006067ea87f0ccb968006b162b98c5d0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 6 Dec 2023 16:50:35 +0100 Subject: [PATCH] Use user's preferred font for inline code snippets too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/view/page/PhabricatorStandardPageView.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php index a81820de3c..005ede23a7 100644 --- a/src/view/page/PhabricatorStandardPageView.php +++ b/src/view/page/PhabricatorStandardPageView.php @@ -413,8 +413,9 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView $font_css = hsprintf( '', $monospaced); }