From 504f22d75bb81d8e2a82cedd1d1936dafbcdc2aa Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Thu, 1 Oct 2026 16:13:46 +0800 Subject: [PATCH] Fix server row text overlap in main pager --- .../com/v2ray/ang/ui/main/MainServerPager.kt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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 + ) } } }