Ver código fonte

enhance: background transition

Tienson Qin 1 semana atrás
pai
commit
2feb2108cb

+ 1 - 3
ios/App/App/NativeTopBarPlugin.swift

@@ -77,10 +77,8 @@ public class NativeTopBarPlugin: CAPPlugin, CAPBridgedPlugin {
 
             // --- NAVIGATION BAR (top) ---
             let appearance = UINavigationBarAppearance()
-            appearance.configureWithOpaqueBackground()
-            appearance.backgroundColor = resolvedBackgroundColor
+            appearance.configureWithTransparentBackground()
             appearance.shadowColor = .clear
-            nav.navigationBar.isTranslucent = false
 
             appearance.titleTextAttributes = [
               .foregroundColor: resolvedTintColor

+ 3 - 2
src/main/mobile/components/app.cljs

@@ -133,8 +133,9 @@
          (bottom-tabs/configure))
        (when-let [element (util/app-scroll-container-node)]
          (common-handler/listen-to-scroll! element))) [])
-    [:div.h-full {:class (when (contains? #{"search"} tab)
-                           "mt-16")}
+    [:div.h-full {:class (if (contains? #{"search"} tab)
+                           "mt-16"
+                           "mt-24")}
      (mobile-header/header current-repo tab)
      (main-content tab route-match)]))