NTP-26378 | Shiv Natani | truncation fix in applied tag banner M1 (#14474)
This commit is contained in:
@@ -181,7 +181,7 @@ fun CoinBurnBannerV2(
|
||||
)
|
||||
Spacer(modifier = Modifier.width(12.dp))
|
||||
} else {
|
||||
AppliedTagEarnBanner(modifier = Modifier.padding(end = 12.dp, start = 8.dp))
|
||||
AppliedTag(modifier = Modifier.padding(end = 12.dp, start = 8.dp))
|
||||
}
|
||||
}
|
||||
Box(
|
||||
|
||||
@@ -10,6 +10,7 @@ package com.navi.payment.nativepayment.components.coins
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
@@ -20,6 +21,7 @@ import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.layout.wrapContentWidth
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.Card
|
||||
import androidx.compose.runtime.Composable
|
||||
@@ -155,7 +157,7 @@ fun CoinEarnBannerV2(
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
AppliedTagEarnBanner(modifier = Modifier.padding(end = 12.dp, start = 8.dp))
|
||||
AppliedTag(modifier = Modifier.padding(end = 12.dp, start = 8.dp))
|
||||
}
|
||||
Box(
|
||||
modifier =
|
||||
@@ -184,11 +186,11 @@ fun CoinEarnBannerV2(
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun AppliedTagEarnBanner(modifier: Modifier = Modifier) {
|
||||
fun AppliedTag(modifier: Modifier = Modifier) {
|
||||
Box(
|
||||
modifier =
|
||||
modifier
|
||||
.width(60.dp)
|
||||
.wrapContentWidth()
|
||||
.height(24.dp)
|
||||
.background(
|
||||
color = NaviPmsColor.coinExchangeBannerBg,
|
||||
@@ -196,8 +198,9 @@ fun AppliedTagEarnBanner(modifier: Modifier = Modifier) {
|
||||
)
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxSize().padding(horizontal = 8.dp),
|
||||
modifier = Modifier.wrapContentWidth().fillMaxHeight().padding(horizontal = 8.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.Center,
|
||||
) {
|
||||
NaviText(
|
||||
text = stringResource(id = R.string.applied),
|
||||
|
||||
Reference in New Issue
Block a user