From 72da158c45c10e66df3b06503f727fed11a1b950 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 28 Oct 2026 10:29:41 +0100 Subject: [PATCH] fix: keep keys on one line in the keyboard shortcuts help and line up its global section --- components/keyboard-shortcuts-modal.tsx | 19 ++++++++++++------- locales/en/common.json | 4 ++-- locales/es/common.json | 4 ++-- locales/pt/common.json | 4 ++-- locales/tr/common.json | 6 +++--- 5 files changed, 21 insertions(+), 16 deletions(-) diff --git a/components/keyboard-shortcuts-modal.tsx b/components/keyboard-shortcuts-modal.tsx index 6ba8ccb69..ec66d8caf 100644 --- a/components/keyboard-shortcuts-modal.tsx +++ b/components/keyboard-shortcuts-modal.tsx @@ -130,7 +130,9 @@ export function KeyboardShortcutsModal({ isOpen, onClose, app }: KeyboardShortcu

{t(section.title)}

-
+ {/* A wide section's two columns line up with the columns of the + sections above it: the same 2rem gap as the panel grid. */} +
{rows.map((shortcut) => ( - {description} -
+
+ {description} + {/* The description wraps first. A key never breaks inside ("Shift + ↓"), + and an alternative keeps its "or" with it ("n or c"); only a very + long list wraps, between alternatives. */} +
{keys.map((key, index) => ( - - {index > 0 && {t("or")}} + + {index > 0 && {t("or")}}