Added Markdown Text (#2860)

This commit is contained in:
Benjamin Faershtein 2025-08-26 17:27:21 -07:00 committed by GitHub
parent 41cfc316f2
commit 799933fcfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 109 additions and 97 deletions

View file

@ -54,7 +54,7 @@ import com.geeksville.mesh.R
import com.geeksville.mesh.database.entity.Reaction
import com.geeksville.mesh.model.Message
import com.geeksville.mesh.model.Node
import com.geeksville.mesh.ui.common.components.AutoLinkText
import com.geeksville.mesh.ui.common.components.MDText
import com.geeksville.mesh.ui.common.components.Rssi
import com.geeksville.mesh.ui.common.components.Snr
import com.geeksville.mesh.ui.common.preview.NodePreviewParameterProvider
@ -164,7 +164,7 @@ internal fun MessageItem(
}
Column(modifier = Modifier.padding(horizontal = 8.dp)) {
AutoLinkText(
MDText(
modifier = Modifier.fillMaxWidth(),
text = message.text,
style = MaterialTheme.typography.bodyMedium,