Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add keyboard shortcut hint

Steven Teye7160d954556
diff --git a/apps/web/ui/links/link-display.tsx b/apps/web/ui/links/link-display.tsx
index 6250878aec..ef61a51138 100644
--- a/apps/web/ui/links/link-display.tsx
+++ b/apps/web/ui/links/link-display.tsx
@@ -83,11 +83,16 @@ export default function LinkDisplay() {
<LinkSort />
</div>
</div>
- <div className="flex h-16 items-center justify-between gap-2 px-4">
- <span className="flex items-center gap-2">
- <BoxArchive className="h-4 w-4 text-gray-800" />
+ <div className="group flex h-16 items-center justify-between gap-2 px-4">
+ <div className="flex items-center gap-2">
+ <div className="flex w-6 items-center justify-center">
+ <BoxArchive className="size-4 text-gray-800 group-hover:hidden" />
+ <kbd className="hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 group-hover:block">
+ A
+ </kbd>
+ </div>
Show archived links
- </span>
+ </div>
<div>
<Switch
checked={showArchived}
diff --git a/packages/ui/src/button.tsx b/packages/ui/src/button.tsx
index e98e3f299b..77888c57c0 100644
--- a/packages/ui/src/button.tsx
+++ b/packages/ui/src/button.tsx
@@ -81,7 +81,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
{shortcut && (
<kbd
className={cn(
- "hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",
+ "hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",
{
"bg-gray-100": variant?.endsWith("outline"),
},
diff --git a/packages/ui/src/combobox/index.tsx b/packages/ui/src/combobox/index.tsx
index 7aaee14914..389c103c1f 100644
--- a/packages/ui/src/combobox/index.tsx
+++ b/packages/ui/src/combobox/index.tsx
@@ -215,7 +215,7 @@ export function Combobox({
}}
/>
{shortcutHint && (
- <kbd className="mr-2 hidden shrink-0 rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-500 md:block">
+ <kbd className="mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block">
{shortcutHint}
</kbd>
)}
diff --git a/packages/ui/src/filter/filter-select.tsx b/packages/ui/src/filter/filter-select.tsx
index b2cdda32a5..f356258e77 100644
--- a/packages/ui/src/filter/filter-select.tsx
+++ b/packages/ui/src/filter/filter-select.tsx
@@ -205,7 +205,7 @@ export function FilterSelect({
}}
/>
{!selectedFilter && (
- <kbd className="mr-2 hidden shrink-0 rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-500 md:block">
+ <kbd className="mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block">
F
</kbd>
)}