Skip to content

Commit

Permalink
Fix width of text input in split expense page
Browse files Browse the repository at this point in the history
  • Loading branch information
QichenZhu committed May 18, 2024
1 parent e8ae3c5 commit b6a5fed
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 b6a5fed

Please sign in to comment.