You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/flipcash/features/discovery/src/main/kotlin/com/flipcash/app/discovery/internal/components/TokenMetricsRow.kt
+24-8Lines changed: 24 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,9 @@ internal fun TokenMetricsRow(
76
76
) {
77
77
Text(
78
78
text = token.name,
79
-
modifier =Modifier.weight(1f, fill =false).alignByBaseline(),
79
+
modifier =Modifier
80
+
.weight(1f, fill =false)
81
+
.alignByBaseline(),
80
82
color =CodeTheme.colors.textMain,
81
83
style =CodeTheme.typography.screenTitle,
82
84
overflow =TextOverflow.Ellipsis,
@@ -108,7 +110,7 @@ internal fun TokenMetricsRow(
108
110
val change =if (metricsDelta >=0) LineTrend.UpelseLineTrend.Down
109
111
val deltaForWindow = buildString {
110
112
when (change) {
111
-
LineTrend.Down->append("-")
113
+
LineTrend.Down->Unit// negative carried over from abbreviated
112
114
LineTrend.Up-> append("+")
113
115
}
114
116
append(metricsDelta.abbreviated())
@@ -135,7 +137,11 @@ internal fun TokenMetricsRow(
0 commit comments