From acc93a603d827a21656bfdf087c823fa8cc59345 Mon Sep 17 00:00:00 2001 From: Yijing Huang Date: Fri, 22 Dec 2023 01:28:28 -0700 Subject: [PATCH] fix: remove italic in inlined code (#4192) --- .../lib/plugins/document/presentation/editor_style.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart index b6be097f23..e6955c52be 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart @@ -43,7 +43,6 @@ class EditorStyleCustomizer { final appearance = context.read().state; final fontSize = appearance.fontSize; final fontFamily = appearance.fontFamily; - final codeFontSize = max(0.0, fontSize - 2); return EditorStyle.desktop( padding: padding, @@ -76,9 +75,8 @@ class EditorStyleCustomizer { ), code: GoogleFonts.robotoMono( textStyle: baseTextStyle(fontFamily).copyWith( - fontSize: codeFontSize, + fontSize: fontSize - 2, fontWeight: FontWeight.normal, - fontStyle: FontStyle.italic, color: Colors.red, backgroundColor: theme.colorScheme.inverseSurface.withOpacity(0.8), ),