[UI] Enhance interaction of Module Import Relationships
Clear and concise description of the problem
In packages/vite/src/app/components/data/ModuleImportRelationships.vue, there is currently a hard limitation: when the number of links exceeds MAX_LINKS, the extra links will not be rendered at all.
https://github.com/user-attachments/assets/5a65fd77-89db-485d-b5fb-8785a00e4fe7
Suggested solution
Introduce a scrollable container to:
- Limit the number of visible modules and links to
MAX_LINKSat a time. - Still allow users to scroll through the full list of modules.
- Dynamically render only the currently visible
MAX_LINKSconnections.
A small demo video has been provided to showcase the proposed solution, and an initial implementation is available in #143.
Currently, there are still some known performance and layout issues that require further optimization. Before continuing with deeper improvements, I would appreciate feedback and confirmation from the maintainers to ensure that this solution aligns with the project's overall design and expectations.
Once approved, I will proceed with further optimization and refinement.
https://github.com/user-attachments/assets/d6da1e23-af48-437a-8d5f-5c5175659290
Alternative
No response
Additional context
No response
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Closed. See (https://github.com/vitejs/devtools/pull/143#issuecomment-3644901667)