Skip to content

Commit

Permalink
Fix Authorizatioon screen
Browse files Browse the repository at this point in the history
- Display whole command
- Use SelectionContainer
  • Loading branch information
DRSchlaubi committed Aug 13, 2023
1 parent bfdf744 commit f0153fb
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.material.Divider
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
Expand Down Expand Up @@ -113,11 +114,13 @@ fun AuthorizationScreen(cli: Boolean, protocol: Boolean) {
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxHeight()
) {
Text(
token,
maxLines = 1,
modifier = Modifier.horizontalScroll(rememberScrollState())
)
SelectionContainer {
Text(
command,
maxLines = 1,
modifier = Modifier.horizontalScroll(rememberScrollState())
)
}
}
Row(
horizontalArrangement = Arrangement.End,
Expand Down

0 comments on commit f0153fb

Please sign in to comment.