From 57f510ad3d07883e5d59a743cd124497e3bc2d8c Mon Sep 17 00:00:00 2001 From: dtoro Date: Wed, 8 Apr 2026 21:46:27 +0200 Subject: [PATCH] fix: keep keyboard hints on a single line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add whitespace-nowrap to the hints pill container plus the action and selection-count spans so labels like "Pick → heap" and "1 selected" no longer break across rows. The pill is an absolute overlay with no width constraint, so growing horizontally is fine. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/KeyboardHints.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/KeyboardHints.tsx b/frontend/src/components/KeyboardHints.tsx index 084b72c..7cc9426 100644 --- a/frontend/src/components/KeyboardHints.tsx +++ b/frontend/src/components/KeyboardHints.tsx @@ -30,13 +30,15 @@ export function KeyboardHints() { // inside the main column in App.tsx so it isn't offset by the // sidebar widths.
-
+
{hints.map((hint, i) => (
{hint.key} - {hint.action} + + {hint.action} + {i < hints.length - 1 && ( )} @@ -45,7 +47,7 @@ export function KeyboardHints() { {selectedCount > 0 && ( <> - + {selectedCount} selected