Fix server row text overlap in main pager

This commit is contained in:
2dust committed 2026-10-01 16:13:46 +08:00
1 parent 996b039b48
commit 504f22d75b
1 file changed
+16 -2
@@ -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
)
}
}
}