about summary refs log tree commit diff
path: root/src/view/com/util/UserBanner.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/util/UserBanner.tsx')
-rw-r--r--src/view/com/util/UserBanner.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx
index 40c82eaf2..e58fb0ef4 100644
--- a/src/view/com/util/UserBanner.tsx
+++ b/src/view/com/util/UserBanner.tsx
@@ -38,9 +38,7 @@ export function UserBanner({
         }
         onSelectNewBanner?.(
           await openCamera(store, {
-            // compressImageMaxWidth: 3000, TODO needed?
             width: 3000,
-            // compressImageMaxHeight: 1000, TODO needed?
             height: 1000,
           }),
         )
@@ -54,14 +52,15 @@ export function UserBanner({
         if (!(await requestPhotoAccessIfNeeded())) {
           return
         }
-        const items = await openPicker(store)
+        const items = await openPicker(store, {
+          mediaType: 'photo',
+          multiple: false,
+        })
         onSelectNewBanner?.(
           await openCropper(store, {
             mediaType: 'photo',
             path: items[0].path,
-            // compressImageMaxWidth: 3000, TODO needed?
             width: 3000,
-            // compressImageMaxHeight: 1000, TODO needed?
             height: 1000,
           }),
         )