@momo-kits/foundation 0.160.1-beta.3 → 0.160.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Text/utils.ts +1 -1
- package/package.json +1 -1
package/Text/utils.ts
CHANGED
|
@@ -9,7 +9,7 @@ const MAX_FONT_SCALE = 1.2;
|
|
|
9
9
|
const useScaleSize = (size: number) => {
|
|
10
10
|
const { width } = useWindowDimensions();
|
|
11
11
|
const context = useContext<any>(MiniAppContext);
|
|
12
|
-
const allowFontScale = context?.designSystemConfig?.
|
|
12
|
+
const allowFontScale = context?.designSystemConfig?.isBaselineEnabled;
|
|
13
13
|
if (!allowFontScale) return size;
|
|
14
14
|
|
|
15
15
|
const deviceScale = width / DEFAULT_SCREEN_SIZE;
|