refactor(ui): make traceroute response scrollable (#2677)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich
2025-08-09 15:55:45 -05:00
committed by GitHub
parent 079767c4f8
commit ed30cbdb18

View File

@@ -31,6 +31,8 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.recalculateWindowInsets
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.automirrored.twotone.Chat
@@ -227,7 +229,7 @@ fun MainScreen(
traceRouteResponse?.let { response ->
SimpleAlertDialog(
title = R.string.traceroute,
text = { Text(text = response) },
text = { Column(modifier = Modifier.verticalScroll(rememberScrollState())) { Text(text = response) } },
dismissText = stringResource(id = R.string.okay),
onDismiss = { uIViewModel.clearTracerouteResponse() },
)