diff options
Diffstat (limited to 'apps/web/src/components/keyboard-shortcuts-help.tsx')
| -rw-r--r-- | apps/web/src/components/keyboard-shortcuts-help.tsx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/web/src/components/keyboard-shortcuts-help.tsx b/apps/web/src/components/keyboard-shortcuts-help.tsx index 65a73b90..96d4705f 100644 --- a/apps/web/src/components/keyboard-shortcuts-help.tsx +++ b/apps/web/src/components/keyboard-shortcuts-help.tsx @@ -91,8 +91,8 @@ const EditableShortcutKey = ({ return ( <Button - variant='text' - size='sm' + variant="text" + size="sm" className={`inline-flex font-sans text-xs rounded px-2 min-w-[1.5rem] min-h-[1.5rem] leading-none items-center justify-center shadow-sm border mr-1 cursor-pointer hover:bg-opacity-80 ${ isRecording ? "border-primary bg-primary/10" @@ -141,11 +141,11 @@ export const KeyboardShortcutsHelp = () => { // Auto-save the new keybinding const conflict = validateKeybinding( keyString, - recordingShortcut.action, + recordingShortcut.action ); if (conflict) { toast.error( - `Key "${keyString}" is already bound to "${conflict.existingAction}"`, + `Key "${keyString}" is already bound to "${conflict.existingAction}"` ); setRecordingShortcut(null); return; @@ -199,7 +199,7 @@ export const KeyboardShortcutsHelp = () => { Shortcuts </Button> </DialogTrigger> - <DialogContent className="max-w-2xl max-h-[80vh] overflow-y-auto"> + <DialogContent className="max-w-2xl overflow-y-auto"> <DialogHeader> <DialogTitle className="flex items-center gap-2"> <Keyboard className="w-5 h-5" /> @@ -235,7 +235,12 @@ export const KeyboardShortcutsHelp = () => { ))} </div> <DialogFooter> - <Button size="sm" className="mt-4" onClick={resetToDefaults}> + <Button + size="sm" + className="mt-4" + variant="destructive" + onClick={resetToDefaults} + > Reset to Default </Button> </DialogFooter> |
