diff --git a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/__snapshots__/keyboard_shortcuts_modal.test.tsx.snap b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/__snapshots__/keyboard_shortcuts_modal.test.tsx.snap
index f54577fdbf..6d30b132a9 100644
--- a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/__snapshots__/keyboard_shortcuts_modal.test.tsx.snap
+++ b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/__snapshots__/keyboard_shortcuts_modal.test.tsx.snap
@@ -328,14 +328,14 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal 1`] = `
Messages
-
-
- Works inside an empty input field
-
-
+
+ Works inside an empty input field
+
-
-
- Autocomplete
-
-
+
+ Autocomplete
+
-
-
- Formatting
-
-
+
+ Formatting
+
-
-
- Searching
-
-
+
+ Searching
+
+
+
+ Files
+
+
+
@@ -511,29 +534,6 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal 1`] = `
-
-
-
- Files
-
-
-
-
@@ -600,14 +600,14 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal 1`] = `
}
}
/>
-
-
- Works inside an input field
-
-
+
+ Works inside an input field
+
-
-
- Works inside an empty input field
-
-
+
+ Works inside an empty input field
+
-
-
- Autocomplete
-
-
+
+ Autocomplete
+
-
-
- Formatting
-
-
+
+ Formatting
+
-
-
- Searching
-
-
+
+ Searching
+
+
+
+ Files
+
+
+
@@ -1158,29 +1181,6 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal with Call
-
-
-
- Files
-
-
-
-
@@ -1247,14 +1247,14 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal with Call
}
}
/>
-
-
- Works inside an input field
-
-
+
+ Works inside an input field
+
-
-
-
-
@@ -1301,14 +1293,14 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal with Call
Calls
-
-
- Global
-
-
+
+ Global
+
-
-
- Call widget
-
-
+
+ Call widget
+
-
-
- Expanded view (pop-out window)
-
-
+
+ Expanded view (pop-out window)
+
div {
- &:first-child {
- margin-bottom: 2.5em;
- }
- }
-
+ margin-bottom: 32px;
.shortcut-line {
display: flex;
+ padding: 10px 0;
+ border-bottom: var(--border-light);
+ gap: 4px;
+
+ .shortcut-key {
+ height: fit-content;
+ flex: 0 0 auto;
+ background: rgba(var(--center-channel-color-rgb), 0.08);
+ color: rgba(var(--center-channel-color-rgb), 0.75);
+ }
span {
- &:first-child {
- margin-right: 5px;
- }
+ flex-grow: 1;
}
}
}
.section-title {
- margin: 0 0 24px;
+ margin: 0 0 12px;
font-size: 18px;
}
.subsection {
- padding-left: 15px;
- border-left: 2px solid;
+ margin: 12px 0 0 0;
+
+ &-title {
+ padding-top: 8px;
+ font-size: inherit;
+ font-weight: 600;
+ line-height: inherit;
+ }
}
.info__label {
diff --git a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/keyboard_shortcuts_modal.tsx b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/keyboard_shortcuts_modal.tsx
index 48eae2a0cf..ecde1d8fa0 100644
--- a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/keyboard_shortcuts_modal.tsx
+++ b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_modal/keyboard_shortcuts_modal.tsx
@@ -163,82 +163,75 @@ const KeyboardShortcutsModal = ({onExited}: Props): JSX.Element => {
{formatMessage(modalMessages.msgHeader)}
-
{formatMessage(modalMessages.msgInputHeader)}
+
{formatMessage(modalMessages.msgInputHeader)}
-
{formatMessage(modalMessages.msgCompHeader)}
+
{formatMessage(modalMessages.msgCompHeader)}
-
{formatMessage(modalMessages.msgMarkdownHeader)}
+
{formatMessage(modalMessages.msgMarkdownHeader)}
-
{formatMessage(modalMessages.msgSearchHeader)}
+
{formatMessage(modalMessages.msgSearchHeader)}
+
+
{formatMessage(modalMessages.filesHeader)}
+
+
-
-
{formatMessage(modalMessages.filesHeader)}
-
-
{formatMessage(modalMessages.browserHeader)}
- {formatMessage(modalMessages.browserInputHeader)}
+
{formatMessage(modalMessages.browserInputHeader)}
-
-
-
- { callsEnabled &&
-
-
+ { callsEnabled &&
{formatMessage(modalMessages.callsHeader)}
-
-
{formatMessage(modalMessages.callsGlobalHeader)}
+
{formatMessage(modalMessages.callsGlobalHeader)}
{renderShortcutSequences(KEYBOARD_SHORTCUTS.calls.global)}
-
{formatMessage(modalMessages.callsWidgetHeader)}
+
{formatMessage(modalMessages.callsWidgetHeader)}
{renderShortcutSequences(KEYBOARD_SHORTCUTS.calls.widget)}
-
-
{formatMessage(modalMessages.callsExpandedHeader)}
+
{formatMessage(modalMessages.callsExpandedHeader)}
{renderShortcutSequences(KEYBOARD_SHORTCUTS.calls.popout)}
+ }
- }
{formatMessage(modalMessages.info)}
diff --git a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.scss b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.scss
index e3532fe399..66b540284b 100644
--- a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.scss
+++ b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.scss
@@ -2,8 +2,6 @@
// See LICENSE.txt for license information.
.shortcut-line {
- margin: 16px 0;
-
span {
&:first-child {
margin-right: 5px;