From 1c07427b6dd3f9721894203a7f1df5aedeb6f68c Mon Sep 17 00:00:00 2001 From: Shengyou Fan Date: Tue, 5 Sep 2023 16:50:55 +0800 Subject: [PATCH] rebase master and update chips --- .../jewel/samples/standalone/customs/ui/PlatformChips.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/customs/ui/PlatformChips.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/customs/ui/PlatformChips.kt index 60430a3b6..40993174b 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/customs/ui/PlatformChips.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/customs/ui/PlatformChips.kt @@ -1,22 +1,22 @@ package org.jetbrains.jewel.samples.standalone.customs.ui +import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp -import androidx.compose.ui.unit.sp import org.jetbrains.jewel.Chip import org.jetbrains.jewel.Text import org.jetbrains.jewel.samples.standalone.customs.data.Platform @Composable fun PlatformChips(supportedPlatforms: List, modifier: Modifier = Modifier) { - Row(modifier) { + Row(modifier, horizontalArrangement = Arrangement.spacedBy(4.dp)) { supportedPlatforms.forEach { platform -> Chip( enabled = true, - onChipClick = {} + onClick = {} ) { Text( text = platform.name,