Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: remove italic in inlined code (#4192)

Yijing Huangacc93a603d82
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<DocumentAppearanceCubit>().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),
),