Browse Source

enhance(mobile): enhance References margin and padding

leizhe 4 years ago
parent
commit
969fec3c99

+ 8 - 0
src/main/frontend/components/block.css

@@ -160,6 +160,14 @@
   }
  }
 
+html.is-mobile,
+html.is-native-iphone,
+html.is-native-android {
+    .references .block-control, .block-control:hover {
+        margin-left: -20px;
+    }
+}
+
 .block-ref {
   border-bottom: 0.5px solid;
   border-bottom-color: var(--ls-block-ref-link-text-color);

+ 2 - 2
src/main/frontend/components/header.cljs

@@ -200,13 +200,13 @@
         (when (and (not (mobile-util/is-native-platform?))
                    (not (util/electron?)))
           (login logged?))
-
+        
         (when plugin-handler/lsp-enabled?
           (plugins/hook-ui-items :toolbar))
 
         (when (not= (state/get-current-route) :home)
           (home-button))
-
+        
         (when (or (util/electron?)
                   (mobile-util/native-ios?))
           (back-and-forward))

+ 1 - 1
src/main/frontend/ui.cljs

@@ -290,7 +290,7 @@
     (when (util/safari?) (.add cl "is-safari"))
     (when (mobile-util/native-ios?) (.add cl "is-native-ios"))
     (when (mobile-util/native-android?) (.add cl "is-native-android"))
-    (when (mobile-util/native-iphone?) (.add cl "native-iphone"))
+    (when (mobile-util/native-iphone?) (.add cl "is-native-iphone"))
     (when (util/electron?)
       (js/window.apis.on "full-screen" #(js-invoke cl (if (= % "enter") "add" "remove") "is-fullscreen"))
       (p/then (ipc/ipc :getAppBaseInfo) #(let [{:keys [isFullScreen]} (js->clj % :keywordize-keys true)]

+ 5 - 1
src/main/frontend/ui.css

@@ -129,12 +129,16 @@
   }
 }
 
-html.is-native-andorid
+html.is-native-andorid,
 html.is-native-iphone
 {
     .ui__modal {
         top: 22vh;
     }
+
+    .references .foldable-title {
+        margin-left: 4px
+}
 }
 
 html.is-mobile {