mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +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.width
|
||||||
import androidx.compose.foundation.layout.wrapContentHeight
|
import androidx.compose.foundation.layout.wrapContentHeight
|
||||||
import androidx.compose.foundation.shape.CircleShape
|
import androidx.compose.foundation.shape.CircleShape
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
||||||
import androidx.compose.material.ripple.rememberRipple
|
import androidx.compose.material.ripple.rememberRipple
|
||||||
import androidx.compose.material3.Badge
|
import androidx.compose.material3.Badge
|
||||||
import androidx.compose.material3.BadgedBox
|
import androidx.compose.material3.BadgedBox
|
||||||
|
@ -224,9 +223,9 @@ fun TagText(
|
||||||
Text(
|
Text(
|
||||||
text = tag,
|
text = tag,
|
||||||
modifier =
|
modifier =
|
||||||
Modifier.background(MaterialTheme.colorScheme.tertiaryContainer, RoundedCornerShape(50))
|
modifier
|
||||||
.padding(vertical = 4.dp, horizontal = 12.dp)
|
.background(MaterialTheme.colorScheme.tertiaryContainer, CircleShape)
|
||||||
.then(modifier),
|
.padding(vertical = 4.dp, horizontal = 12.dp),
|
||||||
color = MaterialTheme.colorScheme.onTertiaryContainer,
|
color = MaterialTheme.colorScheme.onTertiaryContainer,
|
||||||
style = MaterialTheme.typography.labelLarge,
|
style = MaterialTheme.typography.labelLarge,
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<ManuallySuppressedIssues></ManuallySuppressedIssues>
|
<ManuallySuppressedIssues></ManuallySuppressedIssues>
|
||||||
<CurrentIssues>
|
<CurrentIssues>
|
||||||
<ID>MagicNumber:CommentEntry.kt$16</ID>
|
<ID>MagicNumber:CommentEntry.kt$16</ID>
|
||||||
<ID>MagicNumber:LobstersCard.kt$50</ID>
|
|
||||||
<ID>MagicNumber:LobstersCard.kt$8</ID>
|
<ID>MagicNumber:LobstersCard.kt$8</ID>
|
||||||
<ID>MagicNumber:Theme.kt$31</ID>
|
<ID>MagicNumber:Theme.kt$31</ID>
|
||||||
<ID>ModifierMissing:ClawAppBar.kt$ClawAppBarPreview</ID>
|
<ID>ModifierMissing:ClawAppBar.kt$ClawAppBarPreview</ID>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue