From dd303207f502282614d483676f64db87b8549afc Mon Sep 17 00:00:00 2001 From: Mateusz Titz Date: Fri, 24 Jan 2025 11:28:37 +0100 Subject: [PATCH] Fix wrong align of TextInput when displaying currency/icon --- .../TextInput/BaseTextInput/index.native.tsx | 2 +- src/components/TextInput/BaseTextInput/index.tsx | 2 +- src/styles/index.ts | 12 +++++++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index 6db4e512f225..8d1800ce3b65 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -306,7 +306,7 @@ function BaseTextInput( /> ) : null} - + {!!iconLeft && ( ) : null} - + {!!iconLeft && ( paddingTop: 23, }, - textInputAndIconContainer: { - zIndex: -1, - flexDirection: 'row', + textInputAndIconContainer: (isMarkdownEnabled: boolean) => { + if (isMarkdownEnabled) { + return {zIndex: -1, flexDirection: 'row'}; + } + return { + flex: 1, + zIndex: -1, + flexDirection: 'row', + }; }, textInputDesktop: addOutlineWidth(theme, {}, 0),