From addde96eb354be35169049e5ed3c198af68d0a44 Mon Sep 17 00:00:00 2001 From: Sunny Chung Date: Sun, 17 Nov 2024 08:55:18 +0800 Subject: [PATCH] fix spacing in the Settings dialog --- .../multiplatform/hellohttp/ux/SettingDialogView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/SettingDialogView.kt b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/SettingDialogView.kt index b0a92f0e..599a41a6 100644 --- a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/SettingDialogView.kt +++ b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/SettingDialogView.kt @@ -84,7 +84,7 @@ private enum class SettingTab { Data, Appearance } -private val COLUMN_HEADER_WIDTH = 140.dp +private val COLUMN_HEADER_WIDTH = 170.dp @Composable private fun Section(title: CharSequence, content: @Composable ColumnScope.() -> Unit) { @@ -383,7 +383,7 @@ fun AppearanceTab() { }) { Column { Row(verticalAlignment = Alignment.CenterVertically) { - AppText(text = "Preferred Rendering (Requires restarting the app to change) (Current: ${AppContext.instance.renderingApi})", modifier = Modifier.width(COLUMN_HEADER_WIDTH)) + AppText(text = "Preferred Rendering (Requires restarting the app to change) (Current: ${AppContext.instance.renderingApi})", modifier = Modifier.width(COLUMN_HEADER_WIDTH).padding(6.dp)) DropDownView( selectedItem = run { val item = userPreference.preferredRenderingApi_Experimental ?: RenderingApi.Default