|
@@ -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,
|
|
|
) {
|