feat: add Zoom and Drag & Drop features #74
Closed
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.
First of all, thanks for your work.
This PR makes the following changes:
When there's a large model, it was sort of difficult to navigate.
Only the sidebar with the Actions, Options and Models is scrollable, the model preview is navigated using the drag & drop feature.
Instead of horizontal-scrolling in the sidebar, the text is truncated with elipsis, and it has a tooltip to show the whole content.
I did some CSS changes to make the diagram take the whole available space, with this change I made the buttons absolute positioned, but in the Code tab, it was op top of the text, to prevent this, I moved them to the right, also, I added some opacity, which is set to 100 on hover.
And finally, here's a recording of the final result:
mermaid-erd.mov