diff --git a/V2rayNG/app/src/main/java/com/v2ray/ang/ui/main/MainServerPager.kt b/V2rayNG/app/src/main/java/com/v2ray/ang/ui/main/MainServerPager.kt index d2f6c5dca..2c8d2efca 100644 --- a/V2rayNG/app/src/main/java/com/v2ray/ang/ui/main/MainServerPager.kt +++ b/V2rayNG/app/src/main/java/com/v2ray/ang/ui/main/MainServerPager.kt @@ -406,8 +406,22 @@ private fun ServerListItem( } Spacer(modifier = Modifier.height(6.dp)) Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) { - Text(row.typeDescription, style = MaterialTheme.typography.bodySmall, color = colorConfigType, maxLines = 1, overflow = TextOverflow.Ellipsis) - Text(testResult, style = MaterialTheme.typography.bodySmall, color = if (row.testDelayMillis < 0L) colorPingRed else colorPing, maxLines = 1, overflow = TextOverflow.Ellipsis) + Text( + row.typeDescription, + modifier = Modifier.weight(1f, fill = false), + style = MaterialTheme.typography.bodySmall, + color = colorConfigType, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + Spacer(modifier = Modifier.width(8.dp)) + Text( + testResult, + style = MaterialTheme.typography.bodySmall, + color = if (row.testDelayMillis < 0L) colorPingRed else colorPing, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) } } }