style fix
This commit is contained in:
parent
90c29616f7
commit
5102e6d5bb
1 changed files with 4 additions and 4 deletions
|
@ -118,7 +118,7 @@ const Context = <T extends (...args: any[]) => any = any>(props: ParentProps<{ f
|
|||
const Handle: Component<{ command: CommandType }> = (props) => {
|
||||
const { t } = useI18n();
|
||||
|
||||
return <samp>
|
||||
return <>
|
||||
{String(t(props.command.label))}
|
||||
|
||||
<Show when={props.command.shortcut}>{
|
||||
|
@ -131,15 +131,15 @@ const Handle: Component<{ command: CommandType }> = (props) => {
|
|||
[Modifier.Alt]: 'Alt',
|
||||
};
|
||||
|
||||
return <>
|
||||
return <samp>
|
||||
<For each={Object.values(Modifier).filter((m): m is number => typeof m === 'number').filter(m => modifier & m)}>{
|
||||
(m) => <><kbd>{modifierMap[m]}</kbd>+</>
|
||||
}</For>
|
||||
<kbd>{shortcut().key}</kbd>
|
||||
</>;
|
||||
</samp>;
|
||||
}
|
||||
}</Show>
|
||||
</samp>;
|
||||
</>;
|
||||
};
|
||||
|
||||
export const Command = { Root, Handle, Add, Context };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue