Просмотр исходного кода

fix(ui): tweaks for the tabler extension icons

charlie 1 год назад
Родитель
Сommit
aa178b1098

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
resources/js/tabler.ext.js


+ 1 - 1
src/main/frontend/commands.cljs

@@ -394,7 +394,7 @@
       (state/get-commands)
        (when-let [plugin-commands (seq (some->> (state/get-plugins-slash-commands)
                                          (mapv #(vec (concat % [nil :icon/puzzle])))))]
-         (update plugin-commands 0 (fn [v] (conj v "PLUGINS")))))
+         (-> plugin-commands (vec) (update 0 (fn [v] (conj v "PLUGINS"))))))
      (remove nil?)
      (util/distinct-by-last-wins first))))
 

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

@@ -95,7 +95,7 @@
                {:restore? restore-slash?
                 :command command}))))
        :class
-       "black"})))
+       "cp__commands-slash"})))
 
 (rum/defc block-commands < rum/reactive
   [id format]

+ 12 - 0
src/main/frontend/components/editor.css

@@ -112,4 +112,16 @@ pre {
   &[data-editor-popup-ref=datepicker] {
     @apply w-auto;
   }
+}
+
+.cp__commands-slash {
+  .ui__icon {
+    @apply opacity-80;
+  }
+
+  .menu-link {
+    &.chosen .ui__icon {
+      @apply opacity-100;
+    }
+  }
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов