diff --git a/src/renderer/src/components/feature-tips/CmdJPaletteTipDialog.tsx b/src/renderer/src/components/feature-tips/CmdJPaletteTipDialog.tsx index 25cc1c00ea9..ffd8992f350 100644 --- a/src/renderer/src/components/feature-tips/CmdJPaletteTipDialog.tsx +++ b/src/renderer/src/components/feature-tips/CmdJPaletteTipDialog.tsx @@ -67,16 +67,21 @@ export function CmdJPaletteTipDialog({ > {tip.eyebrow.toUpperCase()} + {/* Why: flow the shortcut chip as inline text (not a flex item) so the + short Mac label (⌘⇧J) stays on one line, while a wide label like + "Ctrl+Shift+J" wraps to the next line only when it doesn't fit — + instead of being pushed to the right edge on Win/Linux. */} - - {titlePrefix.trimEnd()} - {displayShortcutLabel ? ( - + {titlePrefix.trimEnd()} + {displayShortcutLabel ? ( + <> + {' '} + {displayShortcutLabel} - ) : null} - {titleSuffix ? {titleSuffix} : null} - + + ) : null} + {titleSuffix ? ` ${titleSuffix}` : null} {tip.description}