diff --git a/app/gabsocial/features/ui/components/hotkeys_modal.js b/app/gabsocial/features/ui/components/hotkeys_modal.js
index 2cd31b149..a3b54579e 100644
--- a/app/gabsocial/features/ui/components/hotkeys_modal.js
+++ b/app/gabsocial/features/ui/components/hotkeys_modal.js
@@ -21,148 +21,146 @@ class HotkeysModal extends ImmutablePureComponent {
return (
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
- r |
- |
-
-
- m |
- |
-
-
- p |
- |
-
-
- f |
- |
-
-
- b |
- |
-
-
- enter, o |
- |
-
-
- x |
- |
-
-
- h |
- |
-
-
- up, k |
- |
-
-
-
-
-
-
- |
-
-
-
-
- down, j |
- |
-
-
- 1 - 9 |
- |
-
-
- n |
- |
-
-
- alt + n |
- |
-
-
- backspace |
- |
-
-
- s |
- |
-
-
- esc |
- |
-
-
- g + h |
- |
-
-
- g + n |
- |
-
-
- g + d |
- |
-
-
-
-
-
-
- |
-
-
-
-
- g + s |
- |
-
-
- g + f |
- |
-
-
- g + p |
- |
-
-
- g + u |
- |
-
-
- g + b |
- |
-
-
- g + m |
- |
-
-
- g + r |
- |
-
-
- ? |
- |
-
-
-
-
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ r |
+ |
+
+
+ m |
+ |
+
+
+ p |
+ |
+
+
+ f |
+ |
+
+
+ b |
+ |
+
+
+ enter, o |
+ |
+
+
+ x |
+ |
+
+
+ h |
+ |
+
+
+ up, k |
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ down, j |
+ |
+
+
+ 1 - 9 |
+ |
+
+
+ n |
+ |
+
+
+ alt + n |
+ |
+
+
+ backspace |
+ |
+
+
+ s |
+ |
+
+
+ esc |
+ |
+
+
+ g + h |
+ |
+
+
+ g + n |
+ |
+
+
+ g + d |
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ g + s |
+ |
+
+
+ g + f |
+ |
+
+
+ g + p |
+ |
+
+
+ g + u |
+ |
+
+
+ g + b |
+ |
+
+
+ g + m |
+ |
+
+
+ g + r |
+ |
+
+
+ ? |
+ |
+
+
+
);
diff --git a/app/styles/application.scss b/app/styles/application.scss
index 053ee5075..a57193533 100644
--- a/app/styles/application.scss
+++ b/app/styles/application.scss
@@ -31,6 +31,7 @@
@import 'gabsocial/components/group-form';
@import 'gabsocial/components/group-sidebar-panel';
@import 'gabsocial/components/sidebar-menu';
+@import 'gabsocial/components/hotkeys-modal';
@import 'gabsocial/polls';
@import 'gabsocial/introduction';
diff --git a/app/styles/gabsocial/components.scss b/app/styles/gabsocial/components.scss
index 08be5d371..8fcff25f7 100644
--- a/app/styles/gabsocial/components.scss
+++ b/app/styles/gabsocial/components.scss
@@ -2114,84 +2114,6 @@ a.account__display-name {
}
}
-.keyboard-shortcuts {
- padding: 8px 0 0;
- overflow: hidden;
- background-color: $classic-base-color;
- border-radius: 6px;
-
- @media screen and (max-width: 960px) {
- height: 90vh;
- }
-
- &__header {
- display: block;
- position: relative;
- border-bottom: 1px solid lighten($classic-base-color, 8%);
- border-radius: 6px 6px 0 0;
- padding-top: 12px;
- padding-bottom: 12px;
-
- &__title {
- display: block;
- width: 80%;
- margin: 0 auto;
- font-size: 18px;
- font-weight: bold;
- line-height: 24px;
- color: $primary-text-color;
- text-align: center;
- }
- }
-
- &__close {
- position: absolute;
- right: 10px;
- top: 10px;
- }
-
- &__content {
- display: flex;
- flex-direction: row;
- padding: 15px;
-
- @media screen and (max-width: 960px) {
- flex-direction: column;
- overflow: hidden;
- overflow-y: scroll;
- height: calc(100% - 80px);
- -webkit-overflow-scrolling: touch;
- }
- }
-
- table {
- thead {
- display: block;
- padding-left: 10px;
- margin-bottom: 10px;
- color: $primary-text-color;
- font-size: 16px;
- font-weight: 600;
- }
-
- tr {
- font-size: 12px;
- }
-
- td {
- padding: 0 10px 8px;
- }
-
- kbd {
- display: inline-block;
- padding: 2px 8px;
- background-color: lighten($ui-base-color, 8%);
- border: 1px solid darken($ui-base-color, 4%);
- border-radius: 4px;
- }
- }
-}
-
.setting-text {
color: $darker-text-color;
background: transparent;
diff --git a/app/styles/gabsocial/components/hotkeys-modal.scss b/app/styles/gabsocial/components/hotkeys-modal.scss
new file mode 100644
index 000000000..fe3078fef
--- /dev/null
+++ b/app/styles/gabsocial/components/hotkeys-modal.scss
@@ -0,0 +1,51 @@
+.hotkeys-modal {
+ padding: 8px 0 0;
+ overflow: hidden;
+ background-color: $classic-base-color;
+ border-radius: 6px;
+ flex-direction: column;
+
+ @media screen and (max-width: 960px) {
+ height: 90vh;
+ }
+
+ .compose-modal__content {
+ background-color: $gab-background-base-light;
+ margin: 5px;
+
+ @media screen and (max-width: 960px) {
+ flex-direction: column;
+ overflow: hidden;
+ overflow-y: scroll;
+ height: calc(100% - 80px);
+ -webkit-overflow-scrolling: touch;
+ }
+ }
+
+ table {
+ thead {
+ display: block;
+ padding-left: 10px;
+ margin-bottom: 10px;
+ color: $primary-text-color;
+ font-size: 16px;
+ font-weight: 600;
+ }
+
+ tr {
+ font-size: 12px;
+ }
+
+ td {
+ padding: 0 10px 8px;
+ }
+
+ kbd {
+ display: inline-block;
+ padding: 2px 8px;
+ background-color: lighten($ui-base-color, 8%);
+ border: 1px solid darken($ui-base-color, 4%);
+ border-radius: 4px;
+ }
+ }
+}