Skip to content

Commit b165b3b

Browse files
committed
fix text fields not vertically centering text
1 parent 2dbff1e commit b165b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/TextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const TextField: ForwardRefRenderFunction<TextInput, TextInputProps> = (
5555
: "#252525",
5656
borderRadius: 7,
5757
paddingVertical: density === "comfortable" ? 10 : 6,
58+
textAlignVertical: "center",
5859
paddingHorizontal: density === "comfortable" ? 14 : 10,
5960
borderWidth: 2,
6061
borderColor: error
@@ -64,7 +65,6 @@ const TextField: ForwardRefRenderFunction<TextInput, TextInputProps> = (
6465
? colors.gray.hover
6566
: colors.gray.default
6667
: "#2F2F2F",
67-
minHeight: density === "comfortable" ? 44 : 33,
6868
}}
6969
placeholder={placeholder}
7070
placeholderTextColor={editable ? "#626262" : "#3D3D3D"}

0 commit comments

Comments
 (0)