From bab532149de57727517aaa764abbe52c97426cdf Mon Sep 17 00:00:00 2001 From: alperozturk Date: Fri, 1 Mar 2024 16:29:08 +0100 Subject: [PATCH] UI fixes Signed-off-by: alperozturk --- .../client/assistant/component/TaskView.kt | 21 ++++++------------- .../bottomSheet/MoreActionsBottomSheet.kt | 1 - app/src/main/res/values/strings.xml | 4 ++-- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/nextcloud/client/assistant/component/TaskView.kt b/app/src/main/java/com/nextcloud/client/assistant/component/TaskView.kt index 03af5de8f7..875d7d5dbe 100644 --- a/app/src/main/java/com/nextcloud/client/assistant/component/TaskView.kt +++ b/app/src/main/java/com/nextcloud/client/assistant/component/TaskView.kt @@ -75,30 +75,21 @@ fun TaskView( ) { Spacer(modifier = Modifier.height(8.dp)) - Text( - text = stringResource(id = R.string.assistant_screen_task_view_input), - color = Color.White - ) - task.input?.let { Text( - text = it, + text = stringResource(id = R.string.assistant_screen_task_view_input, it), color = Color.White ) } - Spacer(modifier = Modifier.height(4.dp)) - HorizontalDivider() - Spacer(modifier = Modifier.height(4.dp)) - - Text( - text = stringResource(id = R.string.assistant_screen_task_view_output), - color = Color.White, - ) + HorizontalDivider(modifier = Modifier.padding(horizontal = 4.dp, vertical = 8.dp)) task.output?.let { Text( - text = if (expanded) it else it.take(100) + "...", + text = stringResource( + id = R.string.assistant_screen_task_view_output, + if (expanded) it else it.take(100) + "..." + ), color = Color.White, modifier = Modifier .animateContentSize( diff --git a/app/src/main/java/com/nextcloud/ui/composeComponents/bottomSheet/MoreActionsBottomSheet.kt b/app/src/main/java/com/nextcloud/ui/composeComponents/bottomSheet/MoreActionsBottomSheet.kt index 35414aac8a..89d0f87eab 100644 --- a/app/src/main/java/com/nextcloud/ui/composeComponents/bottomSheet/MoreActionsBottomSheet.kt +++ b/app/src/main/java/com/nextcloud/ui/composeComponents/bottomSheet/MoreActionsBottomSheet.kt @@ -19,7 +19,6 @@ import androidx.compose.material3.ModalBottomSheet import androidx.compose.material3.Text import androidx.compose.material3.rememberModalBottomSheetState import androidx.compose.runtime.Composable -import androidx.compose.runtime.collectAsState import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index fb5261c2a2..edef6eb769 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -36,8 +36,8 @@ Type some text - Input: - Output: + Input\n%s + Output\n%s Show more Show less