mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 14:07:05 +05:30
refactor(common): correctly use modifier in TagText
This commit is contained in:
parent
f5de95af03
commit
8f927613f3
2 changed files with 3 additions and 5 deletions
|
@ -19,7 +19,6 @@ import androidx.compose.foundation.layout.requiredSize
|
|||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.layout.wrapContentHeight
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.ripple.rememberRipple
|
||||
import androidx.compose.material3.Badge
|
||||
import androidx.compose.material3.BadgedBox
|
||||
|
@ -224,9 +223,9 @@ fun TagText(
|
|||
Text(
|
||||
text = tag,
|
||||
modifier =
|
||||
Modifier.background(MaterialTheme.colorScheme.tertiaryContainer, RoundedCornerShape(50))
|
||||
.padding(vertical = 4.dp, horizontal = 12.dp)
|
||||
.then(modifier),
|
||||
modifier
|
||||
.background(MaterialTheme.colorScheme.tertiaryContainer, CircleShape)
|
||||
.padding(vertical = 4.dp, horizontal = 12.dp),
|
||||
color = MaterialTheme.colorScheme.onTertiaryContainer,
|
||||
style = MaterialTheme.typography.labelLarge,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue