mirror of https://github.com/logseq/logseq
enhance(ui): polish the shortcut label
parent
f6a21102ff
commit
38eeb8cc8a
|
@ -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)]
|
||||
[:<>
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
/>
|
||||
)
|
||||
|
|
|
@ -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")})]
|
||||
|
|
Loading…
Reference in New Issue