OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.37k stars 3.39k forks source link

[Feature Request] Make Viewport Button Component Location Dynamic and Independent of Add Command #4457

Open sedghi opened 2 weeks ago

sedghi commented 2 weeks ago

What feature or change would you like to see made?

Currently, component location is set during the ADD_ACTION_COMPONENT action, which limits flexibility for dynamic layout updates. If a component needs to change location, it must be re-added, which is inefficient.

Why should we prioritize this feature?

Simplify ADD_ACTION_COMPONENT: Make ADD_ACTION_COMPONENT only handle adding a component, not its location, to reduce redundancy and improve maintainability.

This change would enable easy, dynamic layout adjustments without modifying the existing component structure.