Skip to content

Commit 4a6ce3f

Browse files
authored
Merge pull request #1347 from vector-im/jonny/fix-placeholder-overflow
[Rich text editor] Fix placeholder spilling onto multiple lines
2 parents f885071 + 0b71881 commit 4a6ce3f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.d/1347.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Rich text editor] Fix placeholder spilling onto multiple lines

libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ private fun TextInput(
270270
style = defaultTypography.copy(
271271
color = ElementTheme.colors.textSecondary,
272272
),
273+
maxLines = 1,
274+
overflow = TextOverflow.Ellipsis,
273275
)
274276
}
275277

0 commit comments

Comments
 (0)