Skip to content

Commit

Permalink
refactore
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmdshrif committed Jul 18, 2023
1 parent 7d82a3e commit 57ff809
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,12 @@ const styles = {

autoGrowHeightInputContainer: (textInputHeight, maxHeight) => {
const minHeight = variables.componentSizeLarge;
const height = Math.min(Math.max(minHeight, textInputHeight), maxHeight);
let height = textInputHeight;
if (height >= maxHeight) {
height = maxHeight;
} else if (height <= minHeight) {
height = minHeight;
}
return {height, minHeight};
},

Expand Down

0 comments on commit 57ff809

Please sign in to comment.