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: checkbox icon not aligned with the first line (#7997)

Lucas75f0f08c78b9
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,