fixed cut names + hover tooltip

This commit is contained in:
2026-05-15 19:25:58 +02:00
parent 86e2c9dbfa
commit e8c6ce5a8a
2 changed files with 96 additions and 5 deletions
+5 -2
View File
@@ -129,8 +129,7 @@ export default function Search() {
type="button"
onClick={() => setOpen(true)}
aria-label={`Search the catalogue (${isMac ? '⌘' : 'Ctrl'}+K)`}
title={`Search (${isMac ? '⌘' : 'Ctrl'}+K)`}
className="topbar-control tc-collapse-md"
className="topbar-control tc-collapse-md kbd-tip-host"
>
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -146,6 +145,10 @@ export default function Search() {
<path d="m21 21-4.3-4.3" />
</svg>
<span className="tc-label">Search</span>
<span className="kbd-tip" aria-hidden="true">
<kbd>{isMac ? '⌘' : 'Ctrl'}</kbd>
<kbd>K</kbd>
</span>
</button>
{open && (