From 138c632576ab785584271c785b4611878d87207f Mon Sep 17 00:00:00 2001 From: stroblme Date: Wed, 11 Nov 2026 09:16:33 +0100 Subject: [PATCH] Discard and step take the places of flow settings and add node in a lane short of room, so the flow toolbar beside a panel fits at 768px with a draft and while paused; the sidebar folds below 953px instead of 989px --- frontend/src/components/Flow/FlowDock.tsx | 16 ++++++++++++---- frontend/src/components/Flow/FlowEditor.tsx | 4 ++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Flow/FlowDock.tsx b/frontend/src/components/Flow/FlowDock.tsx index 2aeca40..acee4c1 100644 --- a/frontend/src/components/Flow/FlowDock.tsx +++ b/frontend/src/components/Flow/FlowDock.tsx @@ -57,6 +57,8 @@ export const FIT_VIEW_PANEL = { const SHED = "md:@max-[27.5rem]:hidden" /** Hidden in a lane narrower than that shorter bar. */ const SHED_MORE = "md:@max-[21rem]:hidden" +/** Add node makes way for the step button in a lane short of both. */ +const MAKE_WAY = "md:@max-[29.75rem]:hidden" /** * The action bar, floating bottom-centre. Run is the one brand-secondary @@ -72,8 +74,11 @@ const SHED_MORE = "md:@max-[21rem]:hidden" * * Beside a panel it is measured against the lane it sits in, not the screen. * A lane too narrow for the editing bar (the issues badge and discard showing) - * sheds what a phone sheds, then the console. Below that the editor folds the - * sidebar away while the panel is open (`CRAMPED` in FlowEditor). + * sheds what a phone sheds, then the console. Step takes add node's place + * wherever the paused bar would not fit, and in the narrowest lane discard + * takes flow settings', so every bar at its shortest is as wide. Below that + * the editor folds the sidebar away while the panel is open (`CRAMPED` in + * FlowEditor). */ export function FlowDock({ flow, @@ -153,7 +158,10 @@ export function FlowDock({