Copilot commented on code in PR #9407:
URL: https://github.com/apache/texera/pull/9407#discussion_r4543821068


##########
frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss:
##########
@@ -689,6 +689,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 {

Review Comment:
   This selector is broad within the component (any inert 
`texera-property-editor` will be affected). If this component ever renders 
other property editors (now or later), it could unintentionally change their 
layout too. Prefer scoping this rule under the specific panel container/state 
(e.g., `.panel.read-only …`) so the behavior is intentionally limited to the 
read-only step panel.



##########
frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss:
##########
@@ -689,6 +689,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;
+  }

Review Comment:
   The PR description says the styling is keyed off a panel `read-only` class 
(`.panel.read-only`) so the two mounts can be distinguished, but this SCSS 
change is keyed off `texera-property-editor[inert]` instead. Please either (a) 
update the implementation to use the documented `.panel.read-only …` scoping, 
or (b) update the PR description/testing notes to match the actual selector 
strategy to avoid future drift/confusion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to