Browse Source

fix(android): can't import graph

fixes https://test.logseq.com/#/page/68bee920-0a72-4f03-953a-3b69119d74b9
Tienson Qin 1 month ago
parent
commit
fb295ea7f7
2 changed files with 3 additions and 17 deletions
  1. 0 12
      src/main/frontend/components/onboarding/index.css
  2. 3 5
      src/main/mobile/core.cljs

+ 0 - 12
src/main/frontend/components/onboarding/index.css

@@ -559,10 +559,6 @@ html.is-native-iphone,
 html.is-native-iphone-without-notch {
   .cp__onboarding {
     &-setups {
-      width: 100%;
-      height: 100%;
-      overflow-y: auto;
-
       .inner-card {
         padding-top: 30px;
         min-height: 100%;
@@ -605,11 +601,3 @@ html.is-native-iphone-without-notch {
     }
   }
 }
-
-html.is-native-android {
-  .cp__onboarding-setups {
-    position: absolute;
-    top: 0;
-    left: 0;
-  }
-}

+ 3 - 5
src/main/mobile/core.cljs

@@ -63,11 +63,9 @@
          (mobile-state/redirect-to-tab! "settings")
 
          :import
-         (js/setTimeout
-          #(shui/popup-show! nil (fn []
-                                   (imports/importer {}))
-                             {:id :import})
-          500)
+         (shui/popup-show! nil (fn []
+                                 (imports/importer {}))
+                           {:id :import})
 
          nil)))