浏览代码

enhance text overflow

Konstantinos Kaloutas 2 年之前
父节点
当前提交
20bd31d662
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      src/main/frontend/components/container.css
  2. 1 1
      src/main/frontend/components/right_sidebar.cljs

+ 3 - 3
src/main/frontend/components/container.css

@@ -689,10 +689,10 @@ html[data-theme='dark'] {
       @apply h-full;
       @apply h-full;
 
 
       .button {
       .button {
-        @apply invisible p-0 ml-2 flex items-center;
+        @apply hidden p-0 ml-2 flex items-center;
 
 
         &:focus {
         &:focus {
-          @apply visible;
+          @apply flex;
         }
         }
       }
       }
     }
     }
@@ -701,7 +701,7 @@ html[data-theme='dark'] {
     &:hover {
     &:hover {
       .item-actions {
       .item-actions {
         .button {
         .button {
-          @apply visible;
+          @apply flex;
         }
         }
       }
       }
     }
     }

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

@@ -150,7 +150,7 @@
         (if-let [icon (get-in page [:block/properties :icon])]
         (if-let [icon (get-in page [:block/properties :icon])]
           [:.text-md.mr-2 icon]
           [:.text-md.mr-2 icon]
           (ui/icon (if (= "whiteboard" (:block/type page)) "whiteboard" "page") {:class "text-md mr-2"}))
           (ui/icon (if (= "whiteboard" (:block/type page)) "whiteboard" "page") {:class "text-md mr-2"}))
-        (db-model/get-page-original-name page-name)]
+        [:span.overflow-hidden.text-ellipsis (db-model/get-page-original-name page-name)]]
        (page-cp repo page-name)])
        (page-cp repo page-name)])
 
 
     :page-slide-view
     :page-slide-view