File tree Expand file tree Collapse file tree
app/src/main/java/com/nextcloud/talk/ui/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,16 +175,18 @@ fun buildMentionInlineContent(
175175 val width = estimateMentionChipWidthInEm(mention.name, fontSizeSp)
176176 val heightDp = if (isMultilineLayout) CHIP_MULTILINE_HEIGHT_DP else CHIP_SINGLE_LINE_HEIGHT_DP
177177 val heightEm = heightDp / fontSizeSp
178+ val verticalAlign = if (isMultilineLayout) PlaceholderVerticalAlign .Bottom else PlaceholderVerticalAlign .Center
179+ val boxAlignment = if (isMultilineLayout) Alignment .BottomStart else Alignment .CenterStart
178180 return InlineTextContent (
179181 placeholder = Placeholder (
180182 width = width.em,
181183 height = heightEm.em,
182- placeholderVerticalAlign = PlaceholderVerticalAlign . Bottom
184+ placeholderVerticalAlign = verticalAlign
183185 )
184186 ) { _ ->
185187 Box (
186188 modifier = Modifier .fillMaxSize(),
187- contentAlignment = Alignment . BottomStart
189+ contentAlignment = boxAlignment
188190 ) {
189191 MentionChip (
190192 mention = mention,
You can’t perform that action at this time.
0 commit comments