mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 00:01:22 +02:00
Hotkey scrolling
This commit is contained in:
@@ -3,8 +3,8 @@ import { HotKeyList } from './core/HotKeyList';
|
|||||||
|
|
||||||
export function KeyboardShortcutsDialog() {
|
export function KeyboardShortcutsDialog() {
|
||||||
return (
|
return (
|
||||||
<div className="h-full w-full pb-2">
|
<div className="grid h-full">
|
||||||
<HotKeyList hotkeys={hotkeyActions} />
|
<HotKeyList hotkeys={hotkeyActions} className="pb-6" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ interface Props {
|
|||||||
export const HotKeyList = ({ hotkeys, bottomSlot, className }: Props) => {
|
export const HotKeyList = ({ hotkeys, bottomSlot, className }: Props) => {
|
||||||
return (
|
return (
|
||||||
<div className={classNames(className, 'h-full flex items-center justify-center')}>
|
<div className={classNames(className, 'h-full flex items-center justify-center')}>
|
||||||
<div className="px-4 grid gap-2 grid-cols-[auto_auto]">
|
<div className="grid gap-2 grid-cols-[auto_auto]">
|
||||||
{hotkeys.map((hotkey) => (
|
{hotkeys.map((hotkey) => (
|
||||||
<Fragment key={hotkey}>
|
<Fragment key={hotkey}>
|
||||||
<HotKeyLabel className="truncate" action={hotkey} />
|
<HotKeyLabel className="truncate" action={hotkey} />
|
||||||
|
|||||||
Reference in New Issue
Block a user