mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-13 08:01:53 +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,
|
defaultTextDirection: appearance.defaultTextDirection,
|
||||||
textStyleConfiguration: TextStyleConfiguration(
|
textStyleConfiguration: TextStyleConfiguration(
|
||||||
lineHeight: 1.4,
|
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,
|
applyHeightToLastDescent: true,
|
||||||
text: baseTextStyle(fontFamily).copyWith(
|
text: baseTextStyle(fontFamily).copyWith(
|
||||||
fontSize: fontSize,
|
fontSize: fontSize,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user