Browse Source

fix: whiteboard title issue

Peng Xiao 3 years ago
parent
commit
752ecfb43d

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

@@ -232,8 +232,8 @@
        {:style {:color "var(--ls-primary-text-color)"
                 :user-select "none"}}
        (page/page-title page-name
-                        [:span.tie.tie-whiteboard
-                         {:style {:font-size "0.9em"}}]
+                        [:span.text-lg
+                         (ui/icon "whiteboard" {:extension? true})]
                         (get-page-display-name page-name)
                         nil
                         false)]

+ 2 - 2
src/main/frontend/components/whiteboard.css

@@ -149,7 +149,7 @@ input.tl-text-input {
 }
 
 .whiteboard-page-title {
-  @apply flex px-2 py-1 flex-1 overflow-ellipsis overflow-hidden;
+  @apply px-2 py-1 flex-1 overflow-ellipsis overflow-hidden;
 
   font-size: 20px;
   border-radius: 8px;
@@ -162,7 +162,7 @@ input.tl-text-input {
   }
 
   .page-title-sizer-wrapper {
-    width: calc(100% - 24px);
+    width: calc(100% - 20px);
 
     > .title {
       @apply whitespace-nowrap min-w-[80px];