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 98b1b14af2..b8ec8495f2 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart @@ -99,7 +99,9 @@ class EditorStyleCustomizer { defaultTextDirection: appearance.defaultTextDirection, textStyleConfiguration: TextStyleConfiguration( lineHeight: 1.4, - applyHeightToFirstAscent: true, + // on Windows, if applyHeightToFirstAscent is true, the first line will be too high. + // it will cause the first line not aligned with the prefix icon. + applyHeightToFirstAscent: UniversalPlatform.isWindows ? false : true, applyHeightToLastDescent: true, text: baseTextStyle(fontFamily).copyWith( fontSize: fontSize,