1
0
Эх сурвалжийг харах

fix: limit node tile length in left sidebar

Tienson Qin 3 сар өмнө
parent
commit
e6858947f0

+ 1 - 1
src/main/frontend/components/left_sidebar.cljs

@@ -123,7 +123,7 @@
                           :style {:display "ruby"}}
         (cond
           (not (db/page? page))
-          (block/inline-text :markdown (:block/title page))
+          (block/inline-text :markdown (string/replace (apply str (take 64 (:block/title page))) "\n" " "))
           untitled? (t :untitled)
           :else (let [title' (pdf-utils/fix-local-asset-pagename title)
                       parent (:block/parent page)]

+ 1 - 1
src/main/mobile/components/left_sidebar.cljs

@@ -9,7 +9,7 @@
   []
   [:div.w-full.app-silk-popup-content-inner.px-2
    [:div.left-sidebar-inner
-    [:div.sidebar-contents-container.mt-8
+    [:div.sidebar-contents-container.mt-11
      {:class "!gap-4"}
      (app-left-sidebar/sidebar-favorites)
      (app-left-sidebar/sidebar-recent-pages)]]])