Repository navigation
π fix: update viewport selector for JL 4.4 + β¨ improve zoom controls - #412
Merged
MFA-X-AI merged 54 commits intoJun 23, 2025
Merged
Conversation
Sync JupyterLab theme with Xircuits toggle
Replace old Argument test with new one
π Improve node connection test + π§ͺ Add Argument component test
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-version: 7.0.6 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
β¨ Migrate library checks to get_config & API-based installs + π Fix launcher section reorder
β¦d-popup Show component parse error only on manual reload
β¦/ui-tests/cross-spawn-7.0.6 Bump cross-spawn from 7.0.3 to 7.0.6 in /ui-tests
β¦e-notifications β¨ Notifications: Install, Save, Compile + Unify Install Logic
Remove ts UI tests
β¨ Add Support for uv
β¨ Implement "Drop Node on Link" feature
β¦e-on-node β¨ Enable link drop anywhere on node area for flexible connections
MFA-X-AI
reviewed
Jun 22, 2025
MFA-X-AI
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR! Appreciate you polishing the current zoom control feature.
Things seem to be working well, but I'm noting that for the very first instance, the css doesn't seem to apply correctly. After toggling the theme, it seems to properly apply.
theme.mismatch.mp4
It's a pretty minor thing and I think it's good to merge anyways, but if you could take a look at why that would happen, then it would be perfect. Thanks!
MFA-X-AI
reviewed
Jun 23, 2025
Contributor
Author
|
Thanks! Just updated the zoom buttons to follow the Xircuits theme instead of the JupyterLab one. Should work fine now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR addresses two improvements related to the zoom functionality in Xircuits:
π Fix: JupyterLab 4.4 Compatibility
Updated the CSS selector used to measure the viewport (zoomToFit).
JupyterLab 4.4 changed the aria-label value from "notebook content" to "main area content".
The old selector caused zoomToFit to silently fail; now it works reliably across JupyterLab versions.
β¨ Enhancement: Zoom Controls UX
Redesigned the Zoom controls UI:
Switched to a vertical layout.
Replaced icons with simpler + / - / fit icons (no magnifying glass).
Added hover effect, light/dark theme adaptation, and box shadow.
Auto-hide behavior: buttons fade out after 1.5s of no mouse movement and reappear when hovering over the canvas or buttons.
Pull Request Type
Type of Change
Tests
1. Zoom to Fit Selector Compatibility Test
Open any workflow with multiple nodes.
Click the "Fit All Nodes" button.
Confirm that the canvas zooms and pans correctly to include all nodes.
2. Zoom Controls UI Behavior Test
Hover over the canvas β controls appear.
Stop mouse movement for 1.5 seconds β controls fade out.
Hover over controls β they remain visible.
Click + or - β zoom in/out as expected.
Click "fit" β fit all nodes.
Confirm proper appearance in both light and dark themes.
Tested on? Specify Version.