1
0
Эх сурвалжийг харах

enhance(ui): polish the shortcut label

charlie 1 жил өмнө
parent
commit
38eeb8cc8a

+ 2 - 2
deps/shui/src/logseq/shui/shortcut/v1.cljs

@@ -66,10 +66,10 @@
   (let [tiles (map print-shortcut-key ks)
         interactive? (true? interactive?)]
     (ui/button {:variant (if interactive? :default :text)
-                :class   (str "bg-gray-03 text-gray-10 px-1.5 py-0 leading-4 h-5 rounded "
+                :class   (str "bg-gray-03 text-gray-10 px-1.5 py-0 leading-4 h-5 rounded font-normal "
                            (if interactive?
                              "hover:bg-gray-04 active:bg-gray-03 hover:text-gray-12"
-                             "bg-transparent cursor-default active:bg-gray-03 hover:text-gray-11"))
+                             "bg-transparent cursor-default active:bg-gray-03 hover:text-gray-11 opacity-80"))
                 :size    size}
       (for [[index tile] (map-indexed vector tiles)]
         [:<>

+ 1 - 1
packages/ui/@/components/ui/context-menu.tsx

@@ -193,7 +193,7 @@ const ContextMenuShortcut = ({
   return (
     <span
       className={cn(
-        'ml-auto text-xs tracking-widest text-muted-foreground',
+        'ml-auto text-xs text-muted-foreground',
         className
       )}
       {...props}

+ 1 - 1
packages/ui/@/components/ui/dropdown-menu.tsx

@@ -178,7 +178,7 @@ const DropdownMenuShortcut = ({
 }: React.HTMLAttributes<HTMLSpanElement>) => {
   return (
     <span
-      className={cn('ml-auto text-xs tracking-widest opacity-60', className)}
+      className={cn('ml-auto text-xs opacity-60', className)}
       {...props}
     />
   )

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

@@ -1065,7 +1065,7 @@
 
          (when badge-updates?
            {:title   [:div.flex.items-center.space-x-5.leading-none
-                      [:span (t :plugin/found-updates)] (ui/point "bg-red-600" 5 {:style {:margin-top 2}})]
+                      [:span (t :plugin/found-updates)] (ui/point "bg-red-700" 5 {:style {:margin-top 2}})]
             :options {:on-click #(open-waiting-updates-modal!)
                       :class    "extra-item"}
             :icon    (ui/icon "download")})]