mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 14:15:44 +03:00
UI fixes
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
bc1663616c
commit
bab532149d
3 changed files with 8 additions and 18 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue