Skip to content

Commit

Permalink
[MOD]
Browse files Browse the repository at this point in the history
 - mod DashboardCard.kt
  • Loading branch information
KanuKim97 committed Jun 8, 2024
1 parent 4881f16 commit 957c25f
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fun LeagueDashboardRow(modifier: Modifier = Modifier) {
Row(
modifier = modifier
.fillMaxWidth()
.padding(start = 10.dp, end = 17.dp),
.padding(start = 17.dp, end = 17.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(
Expand All @@ -145,36 +145,42 @@ fun LeagueDashboardRow(modifier: Modifier = Modifier) {
)
Text(
text = "PL",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = ColorFF9E9E9E,
style = GnrTypography.descriptionMedium
)
Text(
text = "W",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = ColorFF9E9E9E,
style = GnrTypography.descriptionMedium
)
Text(
text = "D",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = ColorFF9E9E9E,
style = GnrTypography.descriptionMedium
)
Text(
text = "L",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = ColorFF9E9E9E,
style = GnrTypography.descriptionMedium
)
Text(
text = "GD",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = ColorFF9E9E9E,
style = GnrTypography.descriptionMedium
)
Text(
text = "Pts",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = ColorFF9E9E9E,
style = GnrTypography.descriptionMedium
Expand Down Expand Up @@ -207,7 +213,7 @@ fun LeagueDashboardItem(
Row(
modifier = modifier
.fillMaxWidth()
.padding(top = 2.dp, bottom = 2.dp, end = 17.dp, start = 10.dp),
.padding(top = 2.dp, bottom = 2.dp, end = 17.dp, start = 17.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(
Expand All @@ -225,37 +231,43 @@ fun LeagueDashboardItem(
)
Text(
text = "$totalGames",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = cardItemTextColor,
style = GnrTypography.body2Regular
)
Text(
text = "$wins",
modifier = modifier.weight(1f),
text = "$wins",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = cardItemTextColor,
style = GnrTypography.body2Regular
)
Text(
text = "$draws",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = cardItemTextColor,
style = GnrTypography.body2Regular
)
Text(
text = "$losses",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = cardItemTextColor,
style = GnrTypography.body2Regular
)

Text(
text = "${if(goalDiff > 0)"+" else ""}${goalDiff}",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = cardItemTextColor,
style = GnrTypography.body2Regular
)
Text(
text = "$points",
textAlign = TextAlign.Center,
modifier = modifier.weight(1f),
color = cardItemTextColor,
style = GnrTypography.body2SemiBold
Expand Down

0 comments on commit 957c25f

Please sign in to comment.