Skip to content

Commit 7147dd6

Browse files
committed
fix(mobile): preserve toast clearance above the keyboard
1 parent c4073fb commit 7147dd6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/mobile/src/features/home/ThreadUndoNotice.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ export function ThreadUndoNotice(props: { readonly visible: boolean }) {
3333
: { left: 12, right: 12 };
3434
// The Duo's native tab pill extends above the 48-point toolbar reservation.
3535
const workspacePadding =
36-
useDuoBottomBarInset() === undefined ? (deviceType === "phone" ? 32 : 16) : 8;
36+
useDuoBottomBarInset() === undefined
37+
? deviceType === "phone" && keyboardHeight === 0
38+
? 32
39+
: 16
40+
: 8;
3741
// Replacing a notice must also cancel the native gesture tracking the old one.
3842
const [instance, setInstance] = useState({ notice, key: 0 });
3943
if (instance.notice !== notice) setInstance({ notice, key: instance.key + 1 });

0 commit comments

Comments
 (0)