Skip to content

Commit

Permalink
fix(InputField): changed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vpsmolina committed Jan 24, 2024
1 parent 9d1913a commit f6e0c5b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ exports[`@lad-tech/mobydick-core/ChatInput renders correctly 1`] = `
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -286,9 +283,6 @@ exports[`@lad-tech/mobydick-core/ChatInput renders correctly android 1`] = `
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
[
{
"color": "#20242D",
Expand Down Expand Up @@ -474,9 +468,6 @@ exports[`@lad-tech/mobydick-core/ChatInput renders correctly with containerStyle
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ exports[`@lad-tech/mobydick-core/ChatInputField renders correctly 1`] = `
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -170,9 +167,6 @@ exports[`@lad-tech/mobydick-core/ChatInputField renders correctly focused/blur 1
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -266,9 +260,6 @@ exports[`@lad-tech/mobydick-core/ChatInputField renders correctly focused/blur 2
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -365,9 +356,6 @@ exports[`@lad-tech/mobydick-core/ChatInputField renders correctly with props 1`]
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const InputField = forwardRef<ITextInput, IInputFieldsProps>((props, ref) => {
<TextInput
ref={ref}
testID={Constants.testID}
style={[styles.textInput, getHeight(), getStyle, style]}
style={[styles.textInput, getStyle, style]}
placeholderTextColor={theme.colors.TextMuted}
editable={!disabled}
numberOfLines={1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly 1`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -186,12 +183,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly disabled 1`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -257,12 +251,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly disabled 2`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -328,12 +319,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly focused/blur 1`] =
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -399,12 +387,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly focused/blur 2`] =
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -495,12 +480,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly multiline = false
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
[
{
"color": "#20242D",
Expand Down Expand Up @@ -594,9 +576,6 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly multiline = true 1
"paddingVertical": 18,
"textAlignVertical": "top",
},
{
"minHeight": 120,
},
[
{
"color": "#20242D",
Expand Down Expand Up @@ -688,12 +667,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly secureTextEntry 1`
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
[
{
"color": "#20242D",
Expand Down Expand Up @@ -800,12 +776,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly valid 1`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -871,12 +844,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly valid 2`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -942,12 +912,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly wrong 1`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -1054,12 +1021,9 @@ exports[`@lad-tech/mobydick-core/InputField renders correctly wrong 2`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
{
"color": "#20242D",
"fontFamily": "Inter-Regular",
Expand Down Expand Up @@ -1191,12 +1155,9 @@ exports[`@lad-tech/mobydick-core/InputField renders title titleProps 1`] = `
"padding": 0,
"paddingLeft": 27,
"paddingRight": 24,
"paddingVertical": 0,
"paddingVertical": 18,
"textAlignVertical": undefined,
},
{
"height": 72,
},
[
{
"color": "#20242D",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const defaultStyle = (
paddingLeft: rem(18),
textAlignVertical: multiline ? 'top' : undefined,
padding: 0, // Android по дефолту ставит padding на input's
paddingVertical: multiline ? spaces.Space12 : 0,
paddingVertical: spaces.Space12,
borderRadius: spaces.Space8,
},

Expand Down

0 comments on commit f6e0c5b

Please sign in to comment.