From 2361057917ec6682f5e34fce5ce14b0682d20115 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Fri, 13 Aug 2021 01:36:08 +0530 Subject: [PATCH 1/2] fix: code block for Android --- src/styles/codeStyles/index.android.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/styles/codeStyles/index.android.js b/src/styles/codeStyles/index.android.js index 6af8f4a13366..5f8f51255501 100644 --- a/src/styles/codeStyles/index.android.js +++ b/src/styles/codeStyles/index.android.js @@ -1,14 +1,14 @@ const codeWordWrapper = { - height: 10, + height: 20, }; const codeWordStyle = { - top: -1, - marginVertical: -2, + height: 18, + top: 4, }; const codeTextStyle = { - lineHeight: 18, + lineHeight: 15, }; export default {codeWordWrapper, codeWordStyle, codeTextStyle}; From 441ea5e09f55479110dde48fee4a927b30de544f Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Fri, 13 Aug 2021 02:01:28 +0530 Subject: [PATCH 2/2] fix: inline codeblock on Mobile Web. --- src/components/InlineCodeBlock/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/InlineCodeBlock/index.js b/src/components/InlineCodeBlock/index.js index aa6edab7018e..29bdf38ace1e 100644 --- a/src/components/InlineCodeBlock/index.js +++ b/src/components/InlineCodeBlock/index.js @@ -1,4 +1,5 @@ import React from 'react'; +import {Text} from 'react-native'; import inlineCodeBlockPropTypes from './inlineCodeBlockPropTypes'; const InlineCodeBlock = ({ @@ -8,10 +9,15 @@ const InlineCodeBlock = ({ textStyle, }) => ( + > + + {defaultRendererProps.tnode.data} + + ); InlineCodeBlock.propTypes = inlineCodeBlockPropTypes;