From dbd7575f41ee0d3b5510e54d76254a262cc9f7ad Mon Sep 17 00:00:00 2001 From: Pratyush Sabharwal <155612188+itz-Me-Pj@users.noreply.github.com> Date: Wed, 29 Oct 2025 15:50:09 +0530 Subject: [PATCH] Latex styling update for incorrect baseline for the respective mobile OS (#9238) * Latex styling update for incorrect baseline for the respective mobile OS * Fixed style formatting causing the pipeline to fail * Updated Platform OS method to Platform Select for latex styling --- app/components/markdown/markdown_latex_inline/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/markdown/markdown_latex_inline/index.tsx b/app/components/markdown/markdown_latex_inline/index.tsx index 4495d7445..937d3b8ae 100644 --- a/app/components/markdown/markdown_latex_inline/index.tsx +++ b/app/components/markdown/markdown_latex_inline/index.tsx @@ -3,7 +3,7 @@ import React from 'react'; import {useIntl} from 'react-intl'; -import {Text, View, type DimensionValue} from 'react-native'; +import {Platform, Text, View, type DimensionValue} from 'react-native'; import ErrorBoundary from '@components/markdown/error_boundary'; import MathView from '@components/math_view'; @@ -23,7 +23,8 @@ type MathViewErrorProps = { const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { return { mathStyle: { - marginVertical: 3, + marginVertical: Platform.select({ios: 1.5, default: 0}), + alignItems: 'center', color: theme.centerChannelColor, }, viewStyle: {