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:
weishaupt
2026-10-28 22:43:19 -04:00
co-authored by Claude Sonnet 5.5
parent 03964ca313
commit ed5d9a9c78
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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(