-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix for: Editing workspace name to 1to3 characters adding extra line in the optional message when inviting users in Spanish #17878
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
Changes from all commits
2663cd8
3996bfe
63da719
d1e8606
fb35aa7
9c8cc25
51a725d
49e44c7
b598295
f5490c1
8306310
971dce9
208e9db
a8f6a16
094db19
5d1f2ce
7c380e7
d4b545a
7082422
fc49ff6
f1b6854
40aeb20
3266612
2344a77
f125bd6
6c17fb7
4959935
4b4dab1
f58ea34
af4d0c7
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 |
|---|---|---|
|
|
@@ -300,6 +300,24 @@ function getWidthStyle(width) { | |
| }; | ||
| } | ||
|
|
||
| /** | ||
| * Returns auto grow height text input style | ||
| * | ||
| * @param {Number} textInputHeight | ||
| * @param {Number} maxHeight | ||
| * @returns {Object} | ||
| */ | ||
| function getAutoGrowHeightInputStyle(textInputHeight, maxHeight) { | ||
| if (textInputHeight > maxHeight) { | ||
| return styles.overflowAuto; | ||
| } | ||
|
|
||
| return { | ||
| ...styles.overflowHidden, | ||
| height: maxHeight, | ||
|
Contributor
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.
|
||
| }; | ||
| } | ||
|
|
||
| /** | ||
| * Returns a style with backgroundColor and borderColor set to the same color | ||
| * | ||
|
|
@@ -1103,6 +1121,7 @@ export { | |
| getZoomCursorStyle, | ||
| getZoomSizingStyle, | ||
| getWidthStyle, | ||
| getAutoGrowHeightInputStyle, | ||
| getBackgroundAndBorderStyle, | ||
| getBackgroundColorStyle, | ||
| getBackgroundColorWithOpacityStyle, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -800,6 +800,11 @@ const styles = { | |
| backgroundColor: themeColors.buttonDefaultBG, | ||
| }, | ||
|
|
||
| autoGrowHeightInputContainer: (textInputHeight, maxHeight) => ({ | ||
| height: textInputHeight >= maxHeight ? maxHeight : textInputHeight, | ||
|
Contributor
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. 👋 Coming from #22583 lodashClamp(textInputHeight, minHeight, maxHeight) |
||
| minHeight: variables.componentSizeLarge, | ||
| }), | ||
|
|
||
| textInputContainer: { | ||
| flex: 1, | ||
| justifyContent: 'center', | ||
|
|
@@ -808,6 +813,7 @@ const styles = { | |
| borderBottomWidth: 2, | ||
| borderColor: themeColors.border, | ||
| overflow: 'hidden', | ||
| scrollPaddingTop: '100%', | ||
| }, | ||
|
|
||
| textInputLabel: { | ||
|
|
@@ -848,6 +854,7 @@ const styles = { | |
| paddingTop: 23, | ||
| paddingBottom: 8, | ||
| paddingLeft: 0, | ||
| paddingRight: 0, | ||
| borderWidth: 0, | ||
| }, | ||
|
|
||
|
|
@@ -2566,7 +2573,7 @@ const styles = { | |
| }, | ||
|
|
||
| workspaceInviteWelcome: { | ||
| minHeight: 115, | ||
| maxHeight: 115, | ||
|
Ollyws marked this conversation as resolved.
|
||
| }, | ||
|
|
||
| peopleRow: { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.