enhance(ui): polish the shortcut label

pull/10897/head
charlie 2024-01-15 11:21:03 +08:00
parent f6a21102ff
commit 38eeb8cc8a
4 changed files with 5 additions and 5 deletions

View File

@ -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)]
[:<>

View File

@ -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}

View File

@ -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}
/>
)

View File

@ -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")})]