[Chat][Bug] "In chat" width text (#676)
This commit is contained in:
Родитель
655e7f351c
Коммит
47b227d6ec
|
@ -5,15 +5,18 @@
|
|||
|
||||
package com.azure.android.communication.ui.chat.presentation.ui.chat.components
|
||||
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.viewinterop.AndroidView
|
||||
|
||||
@Composable
|
||||
internal fun ListSubHeaderView(
|
||||
text: String,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
AndroidView(factory = { context ->
|
||||
AndroidView(modifier = modifier.fillMaxWidth(), factory = { context ->
|
||||
com.microsoft.fluentui.listitem.ListSubHeaderView(context).apply {
|
||||
title = text
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ import com.microsoft.fluentui.persona.AvatarView
|
|||
|
||||
@Composable
|
||||
internal fun ParticipantView(participant: RemoteParticipantInfoModel) {
|
||||
|
||||
val participantName = participant.displayName
|
||||
?: stringResource(id = R.string.azure_communication_ui_chat_unnamed_participant)
|
||||
val avatarView = AvatarView(LocalContext.current).apply { name = participantName }
|
||||
|
|
Загрузка…
Ссылка в новой задаче