mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-12 07:34:28 +00:00
fix: checkbox icon not aligned with the first line (#7997)
This commit is contained in:
parent
8fcbf78714
commit
75f0f08c78
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user