-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: double click compose box and select placeholder #19096
Changes from 4 commits
401d1e9
11e0672
12849ab
7dd7d80
eb5a67d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1547,8 +1547,31 @@ const styles = { | |
// paddingVertical: 0, alignSelf: 'center', and textAlignVertical: 'center' | ||
|
||
paddingHorizontal: variables.avatarChatSpacing, | ||
paddingTop: 0, | ||
paddingBottom: 0, | ||
paddingTop: 9, | ||
paddingBottom: 9, | ||
alignSelf: 'center', | ||
textAlignVertical: 'center', | ||
}, | ||
0, | ||
), | ||
textInputComposeMultiLines: addOutlineWidth( | ||
{ | ||
backgroundColor: themeColors.componentBG, | ||
borderColor: themeColors.border, | ||
color: themeColors.text, | ||
fontFamily: fontFamily.EMOJI_TEXT_FONT, | ||
fontSize: variables.fontSizeNormal, | ||
borderWidth: 0, | ||
height: 'auto', | ||
lineHeight: variables.lineHeightXLarge, | ||
...overflowXHidden, | ||
|
||
// On Android, multiline TextInput with height: 'auto' will show extra padding unless they are configured with | ||
// paddingVertical: 0, alignSelf: 'center', and textAlignVertical: 'center' | ||
|
||
paddingHorizontal: variables.avatarChatSpacing, | ||
paddingTop: 5, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dukenv0307 Your proposal mentioned that if the numberOfLines would be 1, the padding values should be 9. I don't see that change here, can you please explain? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that's covered in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just updated |
||
paddingBottom: 5, | ||
alignSelf: 'center', | ||
textAlignVertical: 'center', | ||
}, | ||
|
@@ -1569,7 +1592,7 @@ const styles = { | |
|
||
// composer padding should not be modified unless thoroughly tested against the cases in this PR: #12669 | ||
textInputComposeSpacing: { | ||
paddingVertical: 5, | ||
paddingVertical: 0, | ||
...flex.flexRow, | ||
flex: 1, | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what to make of this. Why is this explanation here, but it doesn't really appear to do anything or be valuable.