|
17 | 17 | package io.getstream.whatsappclone.chats.messages |
18 | 18 |
|
19 | 19 | import androidx.compose.foundation.clickable |
| 20 | +import androidx.compose.foundation.layout.Row |
20 | 21 | import androidx.compose.foundation.layout.Spacer |
21 | 22 | import androidx.compose.foundation.layout.fillMaxWidth |
22 | 23 | import androidx.compose.foundation.layout.padding |
@@ -108,21 +109,23 @@ private fun WhatsAppMessageUserInfo( |
108 | 109 | WhatsAppMessageUiState.Loading -> WhatsAppLoadingIndicator() |
109 | 110 | WhatsAppMessageUiState.Error -> Unit |
110 | 111 | is WhatsAppMessageUiState.Success -> { |
111 | | - GlideImage( |
112 | | - modifier = Modifier |
113 | | - .size(32.dp) |
114 | | - .clip(CircleShape), |
115 | | - imageModel = messageUiState.data.image.takeIf { it.isNotEmpty() } |
116 | | - ?: io.getstream.whatsappclone.designsystem.R.drawable.stream_logo, |
117 | | - previewPlaceholder = io.getstream.whatsappclone.designsystem.R.drawable.placeholder |
118 | | - ) |
| 112 | + Row { |
| 113 | + GlideImage( |
| 114 | + modifier = Modifier |
| 115 | + .size(32.dp) |
| 116 | + .clip(CircleShape), |
| 117 | + imageModel = messageUiState.data.image.takeIf { it.isNotEmpty() } |
| 118 | + ?: io.getstream.whatsappclone.designsystem.R.drawable.stream_logo, |
| 119 | + previewPlaceholder = io.getstream.whatsappclone.designsystem.R.drawable.placeholder |
| 120 | + ) |
119 | 121 |
|
120 | | - Text( |
121 | | - modifier = Modifier.padding(start = 12.dp), |
122 | | - text = messageUiState.data.name, |
123 | | - color = MaterialTheme.colorScheme.tertiary, |
124 | | - style = MaterialTheme.typography.bodyLarge |
125 | | - ) |
| 122 | + Text( |
| 123 | + modifier = Modifier.padding(start = 12.dp), |
| 124 | + text = messageUiState.data.name, |
| 125 | + color = MaterialTheme.colorScheme.tertiary, |
| 126 | + style = MaterialTheme.typography.bodyLarge |
| 127 | + ) |
| 128 | + } |
126 | 129 | } |
127 | 130 | } |
128 | 131 | } |
|
0 commit comments