Browse Source

Merge pull request #1347 from vector-im/jonny/fix-placeholder-overflow

[Rich text editor] Fix placeholder spilling onto multiple lines
pull/1352/head
Benoit Marty 1 year ago committed by GitHub
parent
commit
4a6ce3fbae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/1347.bugfix
  2. 2
      libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt

1
changelog.d/1347.bugfix

@ -0,0 +1 @@ @@ -0,0 +1 @@
[Rich text editor] Fix placeholder spilling onto multiple lines

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

@ -270,6 +270,8 @@ private fun TextInput( @@ -270,6 +270,8 @@ private fun TextInput(
style = defaultTypography.copy(
color = ElementTheme.colors.textSecondary,
),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}

Loading…
Cancel
Save