From 210afc7d44845694f55309e5ff3cb5d251178194 Mon Sep 17 00:00:00 2001 From: Riyadh Date: Thu, 21 May 2026 08:30:27 +0000 Subject: [PATCH] Add a temporary diagnostic display for keyboard inset calculations Add a temporary debug overlay to the DialogContent component in `dialog.tsx` to display `keyboardInset`, `height`, and `offsetTop` values, and the keyboard open state. --- artifacts/tx-os/src/components/ui/dialog.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/artifacts/tx-os/src/components/ui/dialog.tsx b/artifacts/tx-os/src/components/ui/dialog.tsx index e1e6c5bd..c5f238d2 100644 --- a/artifacts/tx-os/src/components/ui/dialog.tsx +++ b/artifacts/tx-os/src/components/ui/dialog.tsx @@ -137,6 +137,26 @@ const DialogContent = React.forwardRef< {...props} > {children} + {/* TEMP DEBUG: shows the live visualViewport readings so we can + tell on-device whether the keyboard-open branch is actually + firing. Remove once iPad PWA layout is confirmed. */} +
+ kb:{keyboardInset.toFixed(0)} h:{height.toFixed(0)} top:{offsetTop.toFixed(0)} {keyboardOpen ? "OPEN" : "closed"} +
Close