Skip to content

Commit 385cb00

Browse files
committed
1
1 parent 2fde3e5 commit 385cb00

6 files changed

Lines changed: 7 additions & 2 deletions

File tree

-1.95 KB
Loading
-27.7 KB
Loading
-26.3 KB
Loading

assets/images/icon.png

-53 KB
Loading

features/simulations/core/rendu-formule.native.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type ProprietesRenduFormule = {
1313
darkColor?: string;
1414
lightColor?: string;
1515
mathViewMobile?: boolean;
16+
numberOfLines?: number;
1617
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
1718
};
1819

@@ -66,7 +67,8 @@ function creerDocumentMathJax(formule: string, couleur: string) {
6667
color: ${couleur};
6768
font-size: 18px;
6869
font-weight: 700;
69-
max-width: 100%;
70+
max-width: none;
71+
white-space: nowrap;
7072
text-align: center;
7173
}
7274
@@ -99,6 +101,7 @@ function ComposantRenduFormule({
99101
darkColor = '#FFFFFF',
100102
lightColor = '#243B53',
101103
mathViewMobile = false,
104+
numberOfLines,
102105
size = 'md',
103106
}: ProprietesRenduFormule) {
104107
const modeSombre = useSchemaCouleur() === 'dark';
@@ -117,7 +120,8 @@ function ComposantRenduFormule({
117120
centered ? styles.centered : undefined,
118121
{ color: couleurFormule },
119122
{ fontSize: FONT_SIZE[size], lineHeight: FONT_SIZE[size] + 6 },
120-
]}>
123+
]}
124+
numberOfLines={numberOfLines}>
121125
{displayFormula}
122126
</TexteTheme>
123127
);

features/simulations/core/rendu-formule.web.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type ProprietesRenduFormule = {
1010
darkColor?: string;
1111
lightColor?: string;
1212
mathViewMobile?: boolean;
13+
numberOfLines?: number;
1314
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
1415
};
1516

0 commit comments

Comments
 (0)