فهرست منبع

improve(ui): using tabler icon for document and reading mode on headbar

charlie 3 سال پیش
والد
کامیت
0207e4171f
2فایلهای تغییر یافته به همراه2 افزوده شده و 15 حذف شده
  1. 0 13
      src/main/frontend/components/header.css
  2. 2 2
      src/main/frontend/components/sidebar.cljs

+ 0 - 13
src/main/frontend/components/header.css

@@ -125,19 +125,6 @@
   .doc-modes {
     .non-editing {
       position: relative;
-
-      &:after {
-        content: " ";
-        width: 90%;
-        height: 2px;
-        background-color: red;
-        position: absolute;
-        left: 0;
-        top: 9px;
-        transform: rotate(45deg);
-        opacity: .7;
-        border-radius: 4px;
-      }
     }
   }
 }

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

@@ -401,7 +401,7 @@
                          [:p.inline-block "to toggle document mode"]]]]}
                [:a.block.px-1.text-sm.font-medium.bg-base-2.rounded-md.mx-2
                 {:on-click state/toggle-document-mode!}
-                "D"]))
+                (ui/icon "notes")]))
 
    (when (state/sub [:document/reading-mode?])
      (ui/tippy {:html [:div.p-2
@@ -413,7 +413,7 @@
                          [:p.inline-block "to toggle reading mode"]]]]}
                [:a.block.px-1.text-sm.font-medium.bg-base-2.rounded-md.mx-2.non-editing
                 {:on-click state/toggle-reading-mode!}
-                "E"]))])
+                (ui/icon "eye")]))])
 
 (rum/defc help-button < rum/reactive
   []