Skip to content

Commit 285732b

Browse files
authored
default to single line input text box height (#6406)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1208671518894266/task/1210802463306062?focus=true ### Description Default to single line when opening the Input Screen. ### Steps to test this PR - [x] Verify opening the input screen from NTP (without any text) opens as a single line. - [x] Verify opening the input screen on web pages still pre-fills the URL in multi lines.
1 parent d5df32a commit 285732b

File tree

1 file changed

+2
-2
lines changed
  • duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/ui/view

1 file changed

+2
-2
lines changed

duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/ui/view/InputModeWidget.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class InputModeWidget @JvmOverloads constructor(
321321
private const val DEFAULT_ANIMATION_DURATION = 300L
322322
private const val FADE_DURATION = 150L
323323
private const val MAX_LINES = 8
324-
private const val SEARCH_MIN_LINES = 2
325-
private const val DUCK_CHAT_MIN_LINES = 2
324+
private const val SEARCH_MIN_LINES = 1
325+
private const val DUCK_CHAT_MIN_LINES = 1
326326
}
327327
}

0 commit comments

Comments
 (0)