Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix app font sizes (#2355)

Ammar Ahmed26657c7ee36a
diff --git a/apps/mobile/app/components/sheets/topic-sheet/index.tsx b/apps/mobile/app/components/sheets/topic-sheet/index.tsx
index 9d7ff9ccc..405a0ac44 100644
--- a/apps/mobile/app/components/sheets/topic-sheet/index.tsx
+++ b/apps/mobile/app/components/sheets/topic-sheet/index.tsx
@@ -65,6 +65,7 @@ import { deleteItems } from "../../../utils/functions";
import { presentDialog } from "../../dialog/functions";
import { Properties } from "../../properties";
import Sort from "../sort";
+import Heading from "../../ui/typography/heading";
type ConfigItem = { id: string; type: string };
class TopicSheetConfig {
diff --git a/apps/mobile/app/utils/size/index.js b/apps/mobile/app/utils/size/index.js
index a659a0caa..f99b70a49 100644
--- a/apps/mobile/app/utils/size/index.js
+++ b/apps/mobile/app/utils/size/index.js
@@ -80,10 +80,10 @@ export const normalize = (size) => {
}
};
export const SIZE = {
- xxs: normalize(10.5) * scale.fontScale,
- xs: normalize(12) * scale.fontScale,
- sm: normalize(14.5) * scale.fontScale,
- md: normalize(16) * scale.fontScale,
+ xxs: normalize(11) * scale.fontScale,
+ xs: normalize(12.5) * scale.fontScale,
+ sm: normalize(15) * scale.fontScale,
+ md: normalize(16.5) * scale.fontScale,
lg: normalize(22) * scale.fontScale,
xl: normalize(24) * scale.fontScale,
xxl: normalize(28) * scale.fontScale,
@@ -91,10 +91,10 @@ export const SIZE = {
};
export function updateSize() {
- SIZE.xxs = normalize(10.5) * scale.fontScale;
- SIZE.xs = normalize(12) * scale.fontScale;
- SIZE.sm = normalize(14.5) * scale.fontScale;
- SIZE.md = normalize(16) * scale.fontScale;
+ SIZE.xxs = normalize(11) * scale.fontScale;
+ SIZE.xs = normalize(12.5) * scale.fontScale;
+ SIZE.sm = normalize(15) * scale.fontScale;
+ SIZE.md = normalize(16.5) * scale.fontScale;
SIZE.lg = normalize(22) * scale.fontScale;
SIZE.xl = normalize(24) * scale.fontScale;
SIZE.xxl = normalize(28) * scale.fontScale;