Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(web): fix alignment of keyboard button in global actions

Mohamed Bassem0893e512f9a1
diff --git a/apps/web/components/dashboard/GlobalActions.tsx b/apps/web/components/dashboard/GlobalActions.tsx
index 3beb733d..c9bda561 100644
--- a/apps/web/components/dashboard/GlobalActions.tsx
+++ b/apps/web/components/dashboard/GlobalActions.tsx
@@ -8,7 +8,7 @@ import { useInBookmarkGridStore } from "@/lib/store/useInBookmarkGridStore";
import { useKeyboardNavigationStore } from "@/lib/store/useKeyboardNavigationStore";
import { Keyboard } from "lucide-react";
-import { Button } from "../ui/button";
+import { ButtonWithTooltip } from "../ui/button";
export default function GlobalActions() {
const { t } = useTranslation();
@@ -24,15 +24,15 @@ export default function GlobalActions() {
{inBookmarkGrid && <BulkBookmarksAction />}
{inBookmarkGrid && <SortOrderToggle />}
{inBookmarkGrid && (
- <Button
+ <ButtonWithTooltip
variant="ghost"
- size="sm"
onClick={() => setShortcutsDialogOpen(true)}
- title={t("keyboard_shortcuts.title")}
+ tooltip={t("keyboard_shortcuts.title")}
+ delayDuration={100}
aria-label={t("keyboard_shortcuts.title")}
>
- <Keyboard className="size-4" />
- </Button>
+ <Keyboard size={18} />
+ </ButtonWithTooltip>
)}
</div>
);