diff --git a/lama_cleaner/app/src/components/Shortcuts/Shortcuts.scss b/lama_cleaner/app/src/components/Shortcuts/Shortcuts.scss index a971410..c353ae1 100644 --- a/lama_cleaner/app/src/components/Shortcuts/Shortcuts.scss +++ b/lama_cleaner/app/src/components/Shortcuts/Shortcuts.scss @@ -34,11 +34,10 @@ .shortcut-key { justify-self: end; - font-family: 'WorkSans-Bold'; border: 1px solid var(--modal-hotkey-border-color); - padding: 0.4rem 1rem; + padding: 0.4rem 0.4rem; width: max-content; - border-radius: 0.4rem; + border-radius: 0.2rem; @include mobile { padding: 0.2rem 0.4rem; @@ -48,7 +47,6 @@ .shortcut-description { justify-self: start; text-align: left; - width: 18rem; @include mobile { text-align: left; diff --git a/lama_cleaner/app/src/components/Shortcuts/ShortcutsModal.tsx b/lama_cleaner/app/src/components/Shortcuts/ShortcutsModal.tsx index be160b9..ef8efbb 100644 --- a/lama_cleaner/app/src/components/Shortcuts/ShortcutsModal.tsx +++ b/lama_cleaner/app/src/components/Shortcuts/ShortcutsModal.tsx @@ -4,21 +4,37 @@ import { shortcutsState } from '../../store/Atoms' import Modal from '../shared/Modal' interface Shortcut { - children: ReactNode content: string + keys: string[] } function ShortCut(props: Shortcut) { - const { children, content } = props + const { content, keys } = props return (
Hold Cmd/Ctrl
-Cmd/Ctrl + Z
-Space & Drag
-Hold Tab
-Esc
-Esc
-Shift + R
-[
-]
-Shift + D
-H
-