|
@@ -48,7 +48,7 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
painter = rememberAsyncImagePainter(uri),
|
|
painter = rememberAsyncImagePainter(uri),
|
|
contentDescription = "",
|
|
contentDescription = "",
|
|
modifier = modifier
|
|
modifier = modifier
|
|
- .aspectRatio(3f/4f)
|
|
|
|
|
|
+ .aspectRatio(3f / 4f)
|
|
.graphicsLayer {
|
|
.graphicsLayer {
|
|
shape = RoundedCornerShape(12.dp)
|
|
shape = RoundedCornerShape(12.dp)
|
|
clip = true
|
|
clip = true
|
|
@@ -57,8 +57,9 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
)
|
|
)
|
|
if (message.message_text.isNotEmpty()) {
|
|
if (message.message_text.isNotEmpty()) {
|
|
Text(
|
|
Text(
|
|
- modifier = Modifier.padding(8.dp),
|
|
|
|
text = message.message_text,
|
|
text = message.message_text,
|
|
|
|
+ modifier = Modifier.padding(8.dp),
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
)
|
|
)
|
|
}
|
|
}
|
|
@@ -74,7 +75,7 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
shape = RoundedCornerShape(12.dp)
|
|
shape = RoundedCornerShape(12.dp)
|
|
clip = true
|
|
clip = true
|
|
}
|
|
}
|
|
- .background(MaterialTheme.colorScheme.surfaceContainerHigh)) {
|
|
|
|
|
|
+ .background(MaterialTheme.colorScheme.surface)) {
|
|
Icon(
|
|
Icon(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.size(48.dp)
|
|
.size(48.dp)
|
|
@@ -94,12 +95,14 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
) {
|
|
) {
|
|
Text(
|
|
Text(
|
|
text = message.message_text.split("|").first(),
|
|
text = message.message_text.split("|").first(),
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
maxLines = 2,
|
|
maxLines = 2,
|
|
overflow = TextOverflow.Ellipsis
|
|
overflow = TextOverflow.Ellipsis
|
|
)
|
|
)
|
|
Text(
|
|
Text(
|
|
text = "11 KB • XLSX",
|
|
text = "11 KB • XLSX",
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
style = MaterialTheme.typography.labelSmall,
|
|
style = MaterialTheme.typography.labelSmall,
|
|
)
|
|
)
|
|
}
|
|
}
|
|
@@ -107,8 +110,9 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
val messageText = message.message_text.split("|").last()
|
|
val messageText = message.message_text.split("|").last()
|
|
if (messageText.isNotEmpty()) {
|
|
if (messageText.isNotEmpty()) {
|
|
Text(
|
|
Text(
|
|
- modifier = Modifier.padding(8.dp),
|
|
|
|
text = messageText,
|
|
text = messageText,
|
|
|
|
+ modifier = Modifier.padding(8.dp),
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
)
|
|
)
|
|
}
|
|
}
|
|
@@ -124,7 +128,7 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
shape = RoundedCornerShape(12.dp)
|
|
shape = RoundedCornerShape(12.dp)
|
|
clip = true
|
|
clip = true
|
|
}
|
|
}
|
|
- .background(MaterialTheme.colorScheme.surfaceContainerHigh)) {
|
|
|
|
|
|
+ .background(MaterialTheme.colorScheme.surface)) {
|
|
Icon(
|
|
Icon(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.size(48.dp)
|
|
.size(48.dp)
|
|
@@ -165,6 +169,7 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
end = 8.dp,
|
|
end = 8.dp,
|
|
bottom = 8.dp
|
|
bottom = 8.dp
|
|
),
|
|
),
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
text = message.message_text.split("|").first(),
|
|
text = message.message_text.split("|").first(),
|
|
style = MaterialTheme.typography.labelSmall,
|
|
style = MaterialTheme.typography.labelSmall,
|
|
maxLines = 1,
|
|
maxLines = 1,
|
|
@@ -175,16 +180,18 @@ fun ContentChat(modifier: Modifier, message: Message) {
|
|
val messageText = message.message_text.split("|").last()
|
|
val messageText = message.message_text.split("|").last()
|
|
if (messageText.isNotEmpty()) {
|
|
if (messageText.isNotEmpty()) {
|
|
Text(
|
|
Text(
|
|
- modifier = Modifier.padding(8.dp),
|
|
|
|
text = messageText,
|
|
text = messageText,
|
|
|
|
+ modifier = Modifier.padding(8.dp),
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
Text(
|
|
Text(
|
|
- modifier = Modifier.padding(8.dp),
|
|
|
|
text = message.message_text,
|
|
text = message.message_text,
|
|
|
|
+ modifier = Modifier.padding(8.dp),
|
|
|
|
+ color = MaterialTheme.colorScheme.onSurface,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
style = MaterialTheme.typography.bodyMedium,
|
|
)
|
|
)
|
|
}
|
|
}
|