You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "anshuksi282-ksolves (via GitHub)" <gi...@apache.org> on 2026/10/21 10:41:57 UTC

[PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

anshuksi282-ksolves opened a new pull request, #11827:
URL: https://github.com/apache/nifi/pull/11827

   ## Summary
   
   [NIFI-16221](https://issues.apache.org/jira/browse/NIFI-16221)
   
   The global theme rule `.cdk-drag:hover { cursor: grab; }` is more specific than the `cursor: se-resize` declared on the
   resize handle of the `Resizable` component, because the handle is itself a `cdkDrag` element. Hovering the handle of
   the property editor therefore shows the `grab` cursor instead of `se-resize`, which makes the handle hard to find.
   
   This marks the handle cursor as `!important`, as is already done for the handle `background`. The change applies to
   all editors that use the `Resizable` component.
   
   The intermittent drag that does not release described in the issue could not be reproduced reliably and is not
   addressed here.
   
   ## Tracking
   
   ### Issue Tracking
   
   - [x] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created
   
   ### Pull Request Tracking
   
   - [x] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000`
   - [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000`
   - [x] Pull request contains [commits signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) with a registered key indicating `Verified` status
   
   ### Pull Request Formatting
   
   - [x] Pull Request based on current revision of the `main` branch
   - [x] Pull Request refers to a feature branch with one commit containing changes
   
   ## Verification
   
   ### Build
   
   - [ ] Build completed using `./mvnw clean install -P contrib-check`
     - [ ] JDK 21
     - [ ] JDK 25
   
   Verified with `nx build nifi`, `nx lint shared`, Prettier, and the `resizable` spec. The change was checked in a
   running NiFi (ExecuteSQL, SQL Query editor): the handle cursor stays `se-resize` on hover and resizing still works.
   
   ### Licensing
   
   - [x] New dependencies are compatible with the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License Policy](https://www.apache.org/legal/resolved.html)
   - [x] New dependencies are documented in applicable `LICENSE` and `NOTICE` files
   
   No new dependencies were added.
   
   ### Documentation
   
   - [x] Documentation formatting appears as expected in rendered files
   
   No documentation files were changed.


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "scottyaslan (via GitHub) via issues" <is...@nifi.apache.org>.
scottyaslan commented on PR #11827:
URL: https://github.com/apache/nifi/pull/11827#issuecomment-6635987818

   > Thanks @scottyaslan, updated as suggested: dropped !important in favour of the `&.cdk-drag:hover` selector and added the :host:has(...) rule for the drag.
   > 
   > While testing I found the cause of the "drag gets stuck" part of the issue: the handle moves ahead of the pointer during the resize, so the pointer ends up over the editor's Ok button. When Ok is disabled (no changes yet), Chrome does not dispatch the mouseup, so the CDK drag never ends and the editor keeps resizing with the mouse until the next click. This also means the cursor during the drag usually comes from the Ok button.
   > 
   > Would you like me to address that in this PR or in a follow-up?
   
   Let's file a follow up and keep these prs tight and easily reviewable and mergable. Thanks!


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "anshuksi282-ksolves (via GitHub)" <gi...@apache.org>.
anshuksi282-ksolves commented on PR #11827:
URL: https://github.com/apache/nifi/pull/11827#issuecomment-6334813714

   Hi @markap14 @exceptionfactory @mcgilman, 
   
   Could you please take a look at this PR whenever you get a chance? Or if you think someone else would be the right reviewer for this, please let me know or tag them here.
   
   Thank you!


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "scottyaslan (via GitHub) via issues" <is...@nifi.apache.org>.
scottyaslan commented on code in PR #11827:
URL: https://github.com/apache/nifi/pull/11827#discussion_r4461593182


##########
nifi-frontend/src/main/frontend/libs/shared/src/components/resizable/resizable.component.scss:
##########
@@ -30,7 +30,7 @@ $handle-size: 15px;
     height: $handle-size;
     bottom: 10px;
     right: 10px;
-    cursor: se-resize;
+    cursor: se-resize !important;
 }
 

Review Comment:
   You will also need:
   
   ```
   // During a drag the preview does not receive pointer events, so the cursor comes
   // from this host. The host is a cdkDrag and matches the grab cursor in _drag-and-drop.scss.
   :host:has(.resizable-handle.cdk-drag-dragging) {
       cursor: se-resize;
   }
   ```
   
   to handle the cursor so it doesn't change back to the grab hand while dragging too.



-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "exceptionfactory (via GitHub)" <gi...@apache.org>.
exceptionfactory commented on PR #11827:
URL: https://github.com/apache/nifi/pull/11827#issuecomment-6531643149

   Tagging @rfellows or @mcgilman to review, this appears straightforward, but want to double-check if there is an alternate approach that should be implemented.


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "scottyaslan (via GitHub) via issues" <is...@nifi.apache.org>.
scottyaslan commented on code in PR #11827:
URL: https://github.com/apache/nifi/pull/11827#discussion_r4459270284


##########
nifi-frontend/src/main/frontend/libs/shared/src/components/resizable/resizable.component.scss:
##########
@@ -30,7 +30,7 @@ $handle-size: 15px;
     height: $handle-size;
     bottom: 10px;
     right: 10px;
-    cursor: se-resize;
+    cursor: se-resize !important;

Review Comment:
   ```suggestion
       cursor: se-resize:
   
       // The handle is a cdkDrag, so `:root .cdk-drag:hover` in _drag-and-drop.scss
       // would otherwise win and show the grab cursor.
       &.cdk-drag:hover {
           cursor: se-resize;
       }
   ```



-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "anshuksi282-ksolves (via GitHub) via issues" <is...@nifi.apache.org>.
anshuksi282-ksolves commented on PR #11827:
URL: https://github.com/apache/nifi/pull/11827#issuecomment-6652676006

   Thanks @scottyaslan. I filed NIFI-16548 for the stuck drag and opened #11890 for it, so this PR only contains the cursor change.
   Could you take another look when you get a chance?


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "anshuksi282-ksolves (via GitHub) via issues" <is...@nifi.apache.org>.
anshuksi282-ksolves commented on PR #11827:
URL: https://github.com/apache/nifi/pull/11827#issuecomment-6624557911

   Thanks @scottyaslan, updated as suggested: dropped !important in favour of the `&.cdk-drag:hover` selector and added the :host:has(...) rule for the drag.
   
   While testing I found the cause of the "drag gets stuck" part of the issue: the handle moves ahead of the pointer during the resize, so the pointer ends up over the editor's Ok button. When Ok is disabled (no changes yet), Chrome does not dispatch the mouseup, so the CDK drag never ends and the editor keeps resizing with the mouse until the next click. This also means the cursor during the drag usually comes from the Ok button.
   
   Would you like me to address that in this PR or in a follow-up?


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] NIFI-16221 Corrected resize handle cursor in editors [nifi]

Posted by "scottyaslan (via GitHub) via issues" <is...@nifi.apache.org>.
scottyaslan merged PR #11827:
URL: https://github.com/apache/nifi/pull/11827


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org