Răsfoiți Sursa

fix: shortcut alignment on command palette

Konstantinos Kaloutas 3 ani în urmă
părinte
comite
32abc786ae

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

@@ -29,7 +29,7 @@
      [:span.col-span-3 desc]
      [:div.col-span-1.justify-end.tip.flex
       (when (and (keyword? id) (namespace id))
-        [:code.opacity-20.bg-transparent (namespace id)])
+        [:code.opacity-50.bg-transparent (namespace id)])
       (when-not (string/blank? first-shortcut)
         [:code.ml-1 first-shortcut])]]))
 

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

@@ -160,7 +160,7 @@
      (dissoc options :only-child?) child]
     [:a.flex.justify-between.px-4.py-2.text-sm.transition.ease-in-out.duration-150.cursor.menu-link
      options
-     [:span child]
+     [:span.w-full child]
      (when shortcut
        [:span.ml-1 (render-keyboard-shortcut shortcut)])]))