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
This commit is contained in:
Pratyush Sabharwal 2025-10-29 15:50:09 +05:30 committed by GitHub
parent c0eaeefbe0
commit dbd7575f41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: {