Skip to content

Commit

Permalink
Merge pull request #42362 from QichenZhu/fix/41766
Browse files Browse the repository at this point in the history
Fix width of text input in split expense page
  • Loading branch information
chiragsalian authored May 24, 2024
2 parents 7ff1466 + b6a5fed commit 8375abe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/TextInput/BaseTextInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ function BaseTextInput(

// Explicitly change boxSizing attribute for mobile chrome in order to apply line-height
// for the issue mentioned here https://github.com/Expensify/App/issues/26735
!isMultiline && Browser.isMobileChrome() && {boxSizing: 'content-box', height: undefined},
// Set overflow property to enable the parent flexbox to shrink its size
// (See https://github.com/Expensify/App/issues/41766)
!isMultiline && Browser.isMobileChrome() && {boxSizing: 'content-box', height: undefined, ...styles.overflowAuto},

// Stop scrollbar flashing when breaking lines with autoGrowHeight enabled.
...(autoGrowHeight
Expand Down

0 comments on commit 8375abe

Please sign in to comment.