Gate iOS glass layout on native support #4032
Mergedjuliusmarmingemerged 3 commits into
main fromrefs/pull/4032/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -249,4 +243,4 @@249243 className="flex-1"250244 data={visibleNodes}251245 keyExtractor={(item) => item.node.path}252- contentInsetAdjustmentBehavior={Platform.OS === "ios" ? "automatic" : "never"}246+ contentInsetAdjustmentBehavior={NATIVE_LIQUID_GLASS_SUPPORTED ? "automatic" : "never"}
- apps/mobile/src/features/files/FileTreeBrowser.tsx line 250Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -249,6 +243,8 @@249243 className="flex-1"250244 data={visibleNodes}251245 keyExtractor={(item) => item.node.path}252- contentInsetAdjustmentBehavior={Platform.OS === "ios" ? "automatic" : "never"}246+ contentInsetAdjustmentBehavior={NATIVE_LIQUID_GLASS_SUPPORTED ? "automatic" : "never"}253247 scrollIndicatorInsets={254- Platform.OS === "ios" ? { top: headerInset, left: 0, right: 0, bottom: 0 } : undefined248+ NATIVE_LIQUID_GLASS_SUPPORTED249+ ? { top: headerInset, left: 0, right: 0, bottom: 0 }250+ : undefined
juliusmarminge merged thisb6d9ce3
juliusmarminge closed this
- @@ -278,4 +279,4 @@278279 );279280280281 /* ─── Native header theming ──────────────────────────────────────── */281- const usesNativeHeaderGlass = Platform.OS === "ios";282+ const usesNativeHeaderGlass = NATIVE_LIQUID_GLASS_SUPPORTED;@@ -33,4 +34,4 @@3334 headerLargeTitle: false,3435 headerShadowVisible: false,3536 headerShown: true,36- headerStyle: { backgroundColor: "transparent" },37+ headerStyle: NATIVE_LIQUID_GLASS_SUPPORTED ? { backgroundColor: "transparent" } : undefined,
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
0271e970-1b36-48f5-ade1-5ccb694d8d1bYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.