From c115c3cb4bca318f2bab4ec3c78113b273d5c05d Mon Sep 17 00:00:00 2001 From: "Sven (AAMOS AI)" Date: Sun, 16 Aug 2026 00:27:53 +0700 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20enradiga=20snabbl=C3=A4nks-etike?= =?UTF-8?q?tter=20+=20svep-tillbaka=20p=C3=A5=20hela=20sidan=20(UX-2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mobile/src/app/(tabs)/home.tsx | 4 +++- apps/mobile/src/app/_layout.tsx | 1 + apps/mobile/src/components/ui.tsx | 22 ++++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/app/(tabs)/home.tsx b/apps/mobile/src/app/(tabs)/home.tsx index e8f3e30..d3dfd57 100644 --- a/apps/mobile/src/app/(tabs)/home.tsx +++ b/apps/mobile/src/app/(tabs)/home.tsx @@ -188,7 +188,9 @@ function QuickLink({ style={{ flex: 1, alignItems: "center", paddingVertical: spacing.sm }} > {glyph} - {label} + + {label} + ); } diff --git a/apps/mobile/src/app/_layout.tsx b/apps/mobile/src/app/_layout.tsx index fa614a8..0bc0c9b 100644 --- a/apps/mobile/src/app/_layout.tsx +++ b/apps/mobile/src/app/_layout.tsx @@ -61,6 +61,7 @@ export default function RootLayout() { headerShadowVisible: false, headerBackTitle: t("common.back"), contentStyle: { backgroundColor: colors.background }, + fullScreenGestureEnabled: true, }} > diff --git a/apps/mobile/src/components/ui.tsx b/apps/mobile/src/components/ui.tsx index 039a912..d194a25 100644 --- a/apps/mobile/src/components/ui.tsx +++ b/apps/mobile/src/components/ui.tsx @@ -55,8 +55,26 @@ export function Heading({ children }: { children: ReactNode }) { export function Body({ children, muted = false }: { children: ReactNode; muted?: boolean }) { return {children}; } -export function Small({ children, style }: { children: ReactNode; style?: StyleProp }) { - return {children}; +export function Small({ + children, + style, + numberOfLines, + adjustsFontSizeToFit, +}: { + children: ReactNode; + style?: StyleProp; + numberOfLines?: number; + adjustsFontSizeToFit?: boolean; +}) { + return ( + + {children} + + ); } export function Card({