Ver Fonte

fix(mobile): page icon size

Tienson Qin há 3 meses atrás
pai
commit
18309f28a9

+ 13 - 0
src/main/capacitor/components/app.css

@@ -284,3 +284,16 @@ div.block-content[contenteditable][data-readonly] {
 .property-block-container {
     margin-left: 0px;
 }
+
+.ls-page-title .ls-page-icon svg, .ls-page-title .ls-page-icon button {
+    width: 26px;
+    height: 26px;
+}
+
+.ls-page-title .ls-page-icon button {
+    margin-top: 6px;
+}
+
+.ls-page-title {
+    margin-left: -8px;
+}

+ 5 - 2
src/main/frontend/components/block.cljs

@@ -3636,14 +3636,17 @@
                                                                       (:db/id block)
                                                                       (pu/get-pid :logseq.property/icon)
                                                                       (select-keys icon [:id :type :color]))
-                                                             ;; del
+                                                                     ;; del
                                                                      (db-property-handler/remove-block-property!
                                                                       (:db/id block)
                                                                       (pu/get-pid :logseq.property/icon))))
                                                       :del-btn? (boolean icon')
                                                       :icon-props {:style {:width "1lh"
                                                                            :height "1lh"
-                                                                           :font-size (if (:page-title? config) 38 18)}}})])))]
+                                                                           :font-size (cond
+                                                                                        (and (util/mobile?) (:page-title? config)) 24
+                                                                                        (:page-title? config) 38
+                                                                                        :else 18)}}})])))]
     [:div.ls-block.swipe-item
      (cond->
       {:id (str "ls-block-"