about summary refs log tree commit diff
path: root/src/alf/atoms.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-03-12 19:25:58 -0500
committerGitHub <noreply@github.com>2024-03-12 19:25:58 -0500
commit202adb6d7b076e2837169bd7585ca76e78e86a1f (patch)
tree9e13d08f398161821e30451109b5ae5c4732a19a /src/alf/atoms.ts
parent5c771050bc3a807fb45abbf47af823e0ea69cf81 (diff)
downloadvoidsky-202adb6d7b076e2837169bd7585ca76e78e86a1f.tar.zst
Fix dropdown close via a portaled backdrop (#3191)
Diffstat (limited to 'src/alf/atoms.ts')
-rw-r--r--src/alf/atoms.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alf/atoms.ts b/src/alf/atoms.ts
index 6d73cd307..5088e3aac 100644
--- a/src/alf/atoms.ts
+++ b/src/alf/atoms.ts
@@ -1,3 +1,4 @@
+import {Platform} from 'react-native'
 import {web, native} from '#/alf/util/platform'
 import * as tokens from '#/alf/tokens'
 
@@ -6,7 +7,7 @@ export const atoms = {
    * Positioning
    */
   fixed: {
-    position: 'fixed',
+    position: Platform.select({web: 'fixed', native: 'absolute'}) as 'absolute',
   },
   absolute: {
     position: 'absolute',