mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: remove italic in inlined code (#4192)
This commit is contained in:
parent
8045042e78
commit
acc93a603d
@ -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),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user