Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-03-01 16:29:08 +01:00 committed by Alper Öztürk
parent bc1663616c
commit bab532149d
3 changed files with 8 additions and 18 deletions

View file

@ -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(

View file

@ -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

View file

@ -36,8 +36,8 @@
<string name="assistant_screen_create_task_alert_dialog_input_field_placeholder">Type some text</string>
<string name="assistant_screen_task_view_input">Input: </string>
<string name="assistant_screen_task_view_output">Output: </string>
<string name="assistant_screen_task_view_input">Input\n%s</string>
<string name="assistant_screen_task_view_output">Output\n%s</string>
<string name="assistant_screen_task_view_show_more">Show more</string>
<string name="assistant_screen_task_view_show_less">Show less</string>