From ed5d9a9c7853fc08210dcb496a8eef7f0413abd3 Mon Sep 17 00:00:00 2001 From: weishaupt Date: Wed, 28 Oct 2026 22:43:19 -0400 Subject: [PATCH] Fix line spacing compile error (TextUnit addition), bump to 0.1.16 Co-Authored-By: Claude Sonnet 5.5 --- build.gradle.kts | 4 ++-- src/main/kotlin/ui/ChannelScreen.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ad0da1d..3ed1e64 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "com.tpuahsiew.wirc" -version = "0.1.15" +version = "0.1.16" // No project-level repositories{} block here: settings.gradle.kts sets // dependencyResolutionManagement.repositoriesMode = FAIL_ON_PROJECT_REPOS and already @@ -40,7 +40,7 @@ compose.desktop { appResourcesRootDir.set(project.file("installerResources")) targetFormats(TargetFormat.Msi, TargetFormat.Exe) packageName = "wIRC" - packageVersion = "0.1.15" + packageVersion = "0.1.16" windows { menuGroup = "wIRC" upgradeUuid = "8f14e45f-ceea-4a5e-9c3b-5b1f0e8c2b7a" diff --git a/src/main/kotlin/ui/ChannelScreen.kt b/src/main/kotlin/ui/ChannelScreen.kt index c05d355..b146078 100644 --- a/src/main/kotlin/ui/ChannelScreen.kt +++ b/src/main/kotlin/ui/ChannelScreen.kt @@ -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(