From 39e0c8be09f612555b5df2732542e505ff7350eb Mon Sep 17 00:00:00 2001 From: Andrew Attali Date: Sat, 18 Jul 2026 14:54:28 +0200 Subject: [PATCH] fix(ios): correctly calculate keyboard offset position --- src/app/components/app-shell/SystemBarShell.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/app-shell/SystemBarShell.tsx b/src/app/components/app-shell/SystemBarShell.tsx index 61efa8946..77f46b00b 100644 --- a/src/app/components/app-shell/SystemBarShell.tsx +++ b/src/app/components/app-shell/SystemBarShell.tsx @@ -5,6 +5,7 @@ import { updateThemeColorMeta } from '../../theme/themeColorMeta'; const safeAreaTop = 'var(--safe-area-inset-top, env(safe-area-inset-top, 0px))'; const safeAreaBottom = 'var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))'; +const iosBottomInset = `max(${safeAreaBottom}, var(--keyboard-height, 0px))`; const safeAreaLeft = 'var(--safe-area-inset-left, env(safe-area-inset-left, 0px))'; const safeAreaRight = 'var(--safe-area-inset-right, env(safe-area-inset-right, 0px))'; @@ -86,9 +87,10 @@ type SystemBarStripProps = { size: string; background: string; stripRef?: RefObject; + transition?: string; }; -function SystemBarStrip({ position, size, background, stripRef }: SystemBarStripProps) { +function SystemBarStrip({ position, size, background, stripRef, transition }: SystemBarStripProps) { return (
)}