Android: reorder the client sheet

Connection info moves to the end, just above the volume slider, which
stays last; "Add to whisper list…" is left out of the sheet for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 21:13:39 +00:00
co-authored by Claude Opus 5.5
parent 3948db69bb
commit 96e926168c
@@ -91,7 +91,6 @@ fun ClientSheet(
}
details?.let { DetailsSection(it, onLink, Modifier.padding(bottom = 8.dp)) }
onFindInTree?.let { Action("CHANNEL_SWITCH", "Find client in channel tree", onClick = it) }
Action("INFO", "Connection info", onClick = onConnectionInfo)
if (client.self) {
Action("AWAY", if (away) "Back" else "Away") { onAway(!away) }
moderation()
@@ -99,7 +98,7 @@ fun ClientSheet(
Action("PLAYER_CHAT", "Send message", onClick = onMessage)
Action("POKE", "Poke") { poking = true }
onWhisper?.let { Action("PLAYER_WHISPER", "Whisper", onClick = it) }
onAddToWhisperList?.let { Action("ON_WHISPERLIST", "Add to whisper list…", onClick = it) }
// "Add to whisper list…" (onAddToWhisperList) is left out for now.
onMove?.let { Action("CHANNEL_SWITCH", "Move to channel…", onClick = it) }
onMoveToOwnChannel?.let { Action("MOVE_CLIENT_TO_OWN_CHANNEL", "Move to own channel", onClick = it) }
moderation()
@@ -111,6 +110,9 @@ fun ClientSheet(
} else {
Action("EDIT_FRIEND_FOE_STATUS", "Edit contact", onClick = onEditContact)
}
}
Action("INFO", "Connection info", onClick = onConnectionInfo)
if (!client.self) {
var volume by remember { mutableFloatStateOf(initialVolume.toFloat()) }
Text("Volume: ${if (volume > 0) "+" else ""}${volume.roundToInt()} dB",
Modifier.padding(start = 24.dp, top = 8.dp), style = MaterialTheme.typography.bodyMedium)