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' })}