about summary refs log tree commit diff
path: root/src/components/Dialog
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-02-20 10:04:07 -0600
committerGitHub <noreply@github.com>2024-02-20 08:04:07 -0800
commit8a169dc6a14d422f65ea4afb5af7fe30efacf2bb (patch)
tree4ad0bf720d19868da897b85c7f9c04218622172d /src/components/Dialog
parentb52a742925cff4429885e94815d61f3f7cfb5a66 (diff)
downloadvoidsky-8a169dc6a14d422f65ea4afb5af7fe30efacf2bb.tar.zst
Improve dialogs issue (#2941)
* Fix collapse, update backdrop color

* Remove test prop

* Remove debug code
Diffstat (limited to 'src/components/Dialog')
-rw-r--r--src/components/Dialog/index.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx
index f30d24e6a..529535051 100644
--- a/src/components/Dialog/index.tsx
+++ b/src/components/Dialog/index.tsx
@@ -90,6 +90,7 @@ export function Outer({
           keyboardBlurBehavior="restore"
           topInset={insets.top}
           {...sheetOptions}
+          snapPoints={sheetOptions.snapPoints || ['100%']}
           ref={sheet}
           index={openIndex}
           backgroundStyle={{backgroundColor: 'transparent'}}
@@ -99,6 +100,7 @@ export function Outer({
               appearsOnIndex={0}
               disappearsOnIndex={-1}
               {...props}
+              style={[flatten(props.style), t.atoms.bg_contrast_300]}
             />
           )}
           handleIndicatorStyle={{backgroundColor: t.palette.primary_500}}
@@ -117,7 +119,7 @@ export function Outer({
                 },
               ]}
             />
-            {hasSnapPoints ? children : <View>{children}</View>}
+            {children}
           </Context.Provider>
         </BottomSheet>
       </Portal>