Przeglądaj źródła

fix: iOS header height

Tienson Qin 4 miesięcy temu
rodzic
commit
16e2692b08
3 zmienionych plików z 31 dodań i 22 usunięć
  1. 2 1
      capacitor.config.ts
  2. 9 1
      src/main/capacitor/app.cljs
  3. 20 20
      src/main/capacitor/app.css

+ 2 - 1
capacitor.config.ts

@@ -9,7 +9,8 @@ const config: CapacitorConfig = {
   webDir: 'static/capacitor',
   loggingBehavior: 'debug',
   server: {
-    androidScheme: 'http',
+      url: "https://192.168.10.208:3002",
+      cleartext: true
   },
   plugins: {
     StatusBar: {

+ 9 - 1
src/main/capacitor/app.cljs

@@ -216,7 +216,15 @@
       {:tab "settings"}
       (ionic/ion-content
        (settings)))
-     (bottom-tabs))))
+     (bottom-tabs)
+
+     (keep-keyboard-open)
+     (ui/install-notifications)
+     (ui/install-modals)
+
+     (shui-toaster/install-toaster)
+     (shui-dialog/install-modals)
+     (shui-popup/install-popups))))
 
 (rum/defc main []
   (let [current-repo (frum/use-atom-in fstate/state :git/current-repo)]

+ 20 - 20
src/main/capacitor/app.css

@@ -1,23 +1,23 @@
-html, body {
-  @apply text-[18px] leading-6 min-h-[unset];
-}
-#root {
-  @apply p-4;
-}
-
-@media (platform: android) {
-  ion-content {
-    --ion-safe-area-top: 25px;
-  }
-}
-
-html.plt-capacitor.plt-iphone {
-  --ion-safe-area-top: 40px;
-
-  ion-toolbar {
-    @apply my-1 py-1;
-  }
-}
+/* html, body { */
+/*   @apply text-[18px] leading-6 min-h-[unset]; */
+/* } */
+/* #root { */
+/*   @apply p-4; */
+/* } */
+
+/* @media (platform: android) { */
+/*   ion-content { */
+/*     --ion-safe-area-top: 25px; */
+/*   } */
+/* } */
+
+/* html.plt-capacitor.plt-iphone { */
+/*   --ion-safe-area-top: 40px; */
+
+/*   ion-toolbar { */
+/*     @apply my-1 py-1; */
+/*   } */
+/* } */
 
 html.plt-capacitor.plt-android {
   --ion-safe-area-top: 40px;