Fix line spacing compile error (TextUnit addition), bump to 0.1.16
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
03964ca313
commit
ed5d9a9c78
@@ -862,7 +862,7 @@ fun MessageScrollback(
|
||||
fontSize = displaySettings.fontSize.sp
|
||||
)
|
||||
val naturalPx = textMeasurer.measure(text = "Mg", style = base).size.height
|
||||
val spacedLine = with(density) { naturalPx.toSp() } + (displaySettings.fontSize * LINE_SPACING_EXTRA).sp
|
||||
val spacedLine = with(density) { (naturalPx + (displaySettings.fontSize * LINE_SPACING_EXTRA).sp.toPx()).toSp() }
|
||||
base.copy(
|
||||
lineHeight = spacedLine,
|
||||
lineHeightStyle = androidx.compose.ui.text.style.LineHeightStyle(
|
||||
|
||||
Reference in New Issue
Block a user