This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-9407-03a5bb842447527910a782c342ef67d2f992ab7b in repository https://gitbox.apache.org/repos/asf/texera.git
commit cc1f201596936a12e79f6243cdc38bef3f73c767 Author: yangzhang75 <[email protected]> AuthorDate: Wed Nov 11 22:50:38 2026 +0000 fix(workflow-form): let the read-only step panel scroll (#9407) ### What changes were proposed in this PR? Closes #9399. On the Form View, the step panel that opens over the preview is read-only unless the form is being edited: the property editor inside it is mounted `inert`, which is what stops a reader from editing the graph through it. An inert subtree is also left out of hit testing, so a wheel over the panel reaches the panel's own box, not the editor's scroller (`#content`), and that box had nothing to scroll: the form's stylesheet pins the embedded editor to the panel's height (`::ng-deep #right-container { height: 100% !important }`), so the editor clipped its content instead of growing. A step taller than the panel (a Python UDF with its code button, environment, columns and parameters) was cut off at the bottom with no way to reach the rest. In edit mode, with `inert` off, the editor scrolls itself as it does on the canvas. One rule, keyed on the attribute that is the cause: while the editor is `inert`, it grows to its content and the panel (`overflow: auto`) is the scroller, which the wheel does reach and which the keyboard scrolls through the tab stop the panel already carries for this purpose. Live, nothing changes: the editor keeps its own scroller, exactly as on the canvas. - `workflow-form.component.scss`: under `.panel`, `::ng-deep texera-property-editor[inert] #right-container { height: auto !important }`. The `!important` has to beat the base rule's own `!important`; `#content` needs nothing, since its `height: 100%` follows an auto-height parent. No template or test change: the editor's `inert` is already bound from the same `panelLive` and already asserted by the rendered spec for both mounts. The operator canvas's own docked property panel is untouched: the rule is nested under the form's `.panel`, which only the Form View renders, and the Form View renders exactly one property editor, inside it. #### Video **Before** https://github.com/user-attachments/assets/86722deb-c9d8-4d6e-a1b2-ced8a4492506 **After** https://github.com/user-attachments/assets/07c52b64-f856-47bc-82d5-ad0d03af2a37 <!-- after video --> ### Any related issues, documentation, discussions? Closes #9399. Part of the Form View (#8011). ### How was this PR tested? - `workflow-form.rendered.spec.ts` already pins the condition the rule keys on: the editor carries `inert` on the read-only mount (and while a run is in flight) and not on the live one. - The full frontend suite, eslint, prettier and the production (AOT) build pass. - By hand on a local deployment, on a one-step workflow whose Python UDF declares eight UI parameters (panel 357px tall, content 1158px): before the change, wheeling over the read-only panel left both scroll positions at 0 and the 801px below the fold could not be reached by wheel, keyboard or scrollbar; after the change the panel scrolls from 0 to its end, PageDown does the same with the panel focused, and in edit mode the editor still scrolls itself with the page staying put. Measured with a Playwright probe against `main` (`cfca8e1e5`) and this branch served side by side on the same backend and the same workflow. ### Was this PR authored or co-authored using generative AI tooling? Yes. Generated-by: Claude Code (Claude Fable 5.1, Anthropic). Co-authored with Claude, reviewed line by line by the author before submission. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]> --- .../component/workflow-form/workflow-form.component.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss b/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss index 747012fdf4..6f4b8647e9 100644 --- a/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss +++ b/frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss @@ -691,6 +691,18 @@ $shell: #fafafa; cursor: default !important; } + /* Read-only, the editor is inert, and an inert subtree is left out of hit-testing: a wheel over + it reaches this panel, never the editor's own scroller (#content), which could then not be + scrolled at all -- a long step was cut off at the panel's bottom. Keyed on the attribute that + is the cause: while the editor is inert it grows to its content and this panel, which the + wheel does reach (and the keyboard, through the tab stop the panel carries for exactly this), + is the scroller. Live, the editor keeps its own scroller, as on the operator canvas. The + !important has to beat the base rule's own !important above; #content needs nothing, its + height: 100% follows an auto-height parent. */ + ::ng-deep texera-property-editor[inert] #right-container { + height: auto !important; + } + ::ng-deep nz-resize-handles, ::ng-deep .nz-resizable-handle { display: none !important;
