From 0189fc1f6677bf7b203609cc4f76fdf61a84b757 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sat, 27 May 2023 20:17:31 +0700 Subject: [PATCH] Bump Compose BOM version 2023.04.00-beta01.1 (#9548) --- gradle/compose.versions.toml | 2 +- .../java/tachiyomi/presentation/core/components/Pill.kt | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 6ede0b85f..8d09fcf23 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -1,6 +1,6 @@ [versions] compiler = "1.4.7" -compose-bom = "2023.04.00-alpha04" +compose-bom = "2023.04.00-beta01.1" accompanist = "0.31.2-alpha" [libraries] diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pill.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pill.kt index fe5da2d25..4389fb482 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pill.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/Pill.kt @@ -1,11 +1,10 @@ package tachiyomi.presentation.core.components import androidx.compose.foundation.layout.Box -import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.requiredWidth import androidx.compose.material3.LocalTextStyle import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -24,7 +23,7 @@ fun Pill( elevation: Dp = 1.dp, fontSize: TextUnit = LocalTextStyle.current.fontSize, ) { - androidx.compose.material3.Surface( + Surface( modifier = modifier .padding(start = 4.dp), shape = MaterialTheme.shapes.extraLarge, @@ -34,7 +33,6 @@ fun Pill( ) { Box( modifier = Modifier - .requiredWidth(IntrinsicSize.Max) .padding(6.dp, 1.dp), contentAlignment = Alignment.Center, ) {