Skip to content

fix(figma): run live preview edge-to-edge in full-screen mode#71

Merged
piaskowyk merged 2 commits into
mainfrom
fix/figma-preview-fullscreen-safe-area
Jun 11, 2026
Merged

fix(figma): run live preview edge-to-edge in full-screen mode#71
piaskowyk merged 2 commits into
mainfrom
fix/figma-preview-fullscreen-safe-area

Conversation

@piaskowyk

Copy link
Copy Markdown
Member

Problem

In the Figma live-preview screen, the full-screen toggle hides the bottom tab bar, but the WebView is still wrapped in a SafeAreaView with a top: 'additive' inset. So in "full-screen" the bottom bar disappears while the prototype stays clipped under the notch/status bar — half-immersive and visually broken.

Fix

PulsarApp/app/(tabs)/figma.tsx: when the tab bar is hidden, swap the SafeAreaView to a no-inset edge set (top/left/right/bottom: 'off') so the preview runs truly edge-to-edge; restore the normal defaultEdges when the bar returns. The tabBarHidden state already drives the bar visibility, so the edge set is derived from it.

-    <SafeAreaView edges={defaultEdges as any} style={styles.safeArea}>
+    <SafeAreaView edges={(tabBarHidden ? fullscreenEdges : defaultEdges) as any} style={styles.safeArea}>

Verification (iOS simulator)

Toggling full-screen expands the WebView bounds and removes the top clip, and toggling back restores them:

Mode WebView bounds (normalized) Top
Normal (0, 0.071, 1, 0.834) clipped by safe area
Full-screen (0, 0, 1, 1) edge-to-edge

Notes

🤖 Generated with Claude Code

piaskowyk and others added 2 commits June 11, 2026 12:53
When the live-preview WebView hides the bottom tab bar (full-screen
toggle), the SafeAreaView still applied the top inset, so the prototype
stayed clipped under the notch/status bar — the bottom bar was gone but
the top wasn't, which looked broken.

Switch the SafeAreaView to a no-inset edge set while the tab bar is
hidden so the preview fills the whole screen, then restore the normal
safe-area edges when the bar comes back.

Verified on iOS sim: toggling full-screen expands the WebView from
(0, 0.071, 1, 0.834) to (0, 0, 1, 1) and back.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@piaskowyk piaskowyk merged commit 1cacb9e into main Jun 11, 2026
@piaskowyk piaskowyk deleted the fix/figma-preview-fullscreen-safe-area branch June 11, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant