<commit_before>package eu.kanade.presentation.components

import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp

@Composable
fun Pill(
    text: String,
    modifier: Modifier = Modifier,
    color: androidx.compose.ui.graphics.Color = MaterialTheme.colorScheme.background,
    contentColor: androidx.compose.ui.graphics.Color = MaterialTheme.colorScheme.onBackground,
    elevation: Dp = 1.dp,
    fontSize: TextUnit = LocalTextStyle.current.fontSize,
) {
    androidx.compose.material3.Surface(
        modifier = modifier
            .padding(start = 4.dp)
            .clip(RoundedCornerShape(100)),
        color = color,
        contentColor = contentColor,
        tonalElevation = elevation,
    ) {
        Text(
            text = text,
            modifier = Modifier.padding(6.dp, 1.dp),
            fontSize = fontSize,
        )
    }
}<commit_msg>Don't wrap tab pills<commit_after>package eu.kanade.presentation.components

import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.requiredWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp

@Composable
fun Pill(
    text: String,
    modifier: Modifier = Modifier,
    color: Color = MaterialTheme.colorScheme.background,
    contentColor: Color = MaterialTheme.colorScheme.onBackground,
    elevation: Dp = 1.dp,
    fontSize: TextUnit = LocalTextStyle.current.fontSize,
) {
    androidx.compose.material3.Surface(
        modifier = modifier
            .requiredWidth(IntrinsicSize.Max)
            .padding(start = 4.dp)
            .clip(RoundedCornerShape(100)),
        color = color,
        contentColor = contentColor,
        tonalElevation = elevation,
    ) {
        Text(
            text = text,
            modifier = Modifier.padding(6.dp, 1.dp),
            fontSize = fontSize,
            maxLines = 1,
            softWrap = false,
        )
    }
}
{'fraction_non_alphanumeric': 0.09215757137694254, 'fraction_numerical': 0.008312251535959523, 'mean_word_length': 3.2650231124807396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6612139', 'n_tokens_mistral': 859, 'n_tokens_neox': 831, 'n_words': 142}