mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +08:00
feat: add platform-specific keyboard shortcut display
This commit is contained in:
parent
0e184cafbb
commit
296b15a7d4
@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next"
|
||||
|
||||
const Footer: React.FC = () => {
|
||||
const { t } = useTranslation()
|
||||
const isMac = /macintosh|mac os x/i.test(navigator.userAgent)
|
||||
|
||||
const { data: settingData } = useQuery({
|
||||
queryKey: ["setting"],
|
||||
@ -27,7 +28,7 @@ const Footer: React.FC = () => {
|
||||
<div className="server-footer-theme flex flex-col items-center sm:items-end">
|
||||
<p className="mt-1 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50">
|
||||
<kbd className="pointer-events-none mx-1 inline-flex h-4 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100">
|
||||
<span className="text-xs">⌘</span>K
|
||||
{isMac ? <span className="text-xs">⌘</span> : "Ctrl "}K
|
||||
</kbd>
|
||||
</p>
|
||||
<section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user