From 267b34caaf658e3abc1496045ac1948b9017fef4 Mon Sep 17 00:00:00 2001 From: Manan Bansal <66985466+manan-tech@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:10:51 +0530 Subject: [PATCH] fix(web): keep HITL input-field save button visible in the edit dialog (#38007) Co-authored-by: Claude Opus 4.8 (1M context) --- .../plugins/hitl-input-block/__tests__/input-field.spec.tsx | 6 +++++- .../prompt-editor/plugins/hitl-input-block/input-field.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/__tests__/input-field.spec.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/__tests__/input-field.spec.tsx index c6905da9f7b..62ac5e5181a 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/__tests__/input-field.spec.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/__tests__/input-field.spec.tsx @@ -109,7 +109,11 @@ describe('InputField', () => { const scrollBody = panel?.children[1] const footer = panel?.lastElementChild - expect(panel).toHaveClass('max-h-(--shortcut-popup-max-height)', 'overflow-hidden') + // The max-height falls back to a viewport unit so the panel stays bounded + // (and the footer/actions reachable via the internal scroll) even when it is + // rendered outside the shortcuts popup that defines --shortcut-popup-max-height, + // e.g. inside the edit dialog. See issue #37979. + expect(panel).toHaveClass('max-h-[var(--shortcut-popup-max-height,80dvh)]', 'overflow-hidden') expect(header).toHaveClass('shrink-0', 'pb-2') expect(scrollBody).toHaveClass('min-h-0', 'flex-1', 'overflow-y-auto') expect(footer).toHaveClass('shrink-0', 'bg-components-panel-bg') diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx index 6d7ad432db4..a18b336d91b 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx @@ -216,7 +216,7 @@ const InputField: React.FC = ({ }, [handleSave]) return ( -
+
{t(`${i18nPrefix}.title`, { ns: 'workflow' })}