Jelajahi Sumber

enhance(mobile): add gap between page title and properties

Tienson Qin 2 minggu lalu
induk
melakukan
db90f58755

+ 4 - 0
src/main/mobile/components/app.css

@@ -309,6 +309,10 @@ body, #root {
     }
 }
 
+.ls-mobile-page .ls-page-title .ls-properties-area {
+    @apply mt-4 block ml-2;
+}
+
 div[data-radix-menu-content] {
   @apply overflow-y-auto;
   padding-bottom: 80px;

+ 5 - 4
src/main/mobile/components/search.cljs

@@ -41,7 +41,7 @@
        (when-not (string/blank? input)
          (let [*timeout (atom nil)]
            (p/let [result (search-blocks input)]
-             (set-search-result! result)
+             (set-search-result! (or result []))
              (when (seq result)
                (reset! *timeout
                        (js/setTimeout
@@ -94,6 +94,7 @@
                (when (and page? icon) (ui/icon icon {:size 15
                                                      :class "text-muted-foreground mt-1"}))
                [:div text]]]]))]
-       (when-not (string/blank? input)
-         [:div.font-medium.text-muted-foreground
-          "No results"]))]))
+       (when (= result [])
+         (when-not (string/blank? input)
+           [:div.font-medium.text-muted-foreground
+            "No results"])))]))