Skip to content

Commit

Permalink
Fixed shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscognite committed Jun 26, 2024
1 parent 8ac29ae commit a077933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ function CommandButtonWrapper({
const direction = !isHorizontal ? 'horizontal' : 'vertical';
return <Divider weight="2px" length="24px" direction={direction} />;
}
return CreateButton(command);
return CreateButton(command, isHorizontal);
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const LabelWithShortcut: React.FC<LabelWithShortcutProps> = ({ label, sho
return (
<Container key={label}>
<Label>{label}</Label>
{shortcut !== undefined && <Shortcut keys={[shortcut.toUpperCase()]} />}
{shortcut !== undefined && <Shortcut keys={[shortcut]} inverted />}
</Container>
);
};
Expand Down

0 comments on commit a077933

Please sign in to comment.