Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Improve ERD auto-layout rendering with state-based approach #671

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

junkisai
Copy link
Member

@junkisai junkisai commented Feb 5, 2025

Summary

Fixed an issue in mobile Safari where the initial auto layout was not applied.

demo.mp4

The problem was caused by executing setInitializeComplete(true) and performing layout calculations before the nodes were updated by setNodes.
To resolve this, setInitializeComplete is now executed after setNodes has completed.

Related Issue

N/A

Changes

Testing

cli ver.

Chrome / Mac Safari / Mac
2025-02-05.11.52.39.mov
2025-02-05.11.54.35.mov
Chrome / iPhone Safari / iPhone
ScreenRecording_02-05-2025.11-59-23_1.MP4
ScreenRecording_02-05-2025.12-01-34_1.MP4

web ver.

Chrome / Mac Safari / Mac
2025-02-05.11.53.09.mov
2025-02-05.11.55.07.mov
Chrome / iPhone Safari / iPhone
ScreenRecording_02-05-2025.12-00-00_1.MP4
ScreenRecording_02-05-2025.12-03-04_1.MP4

Other Information

@junkisai junkisai force-pushed the fix/auto-layout-on-safari branch from ac18674 to 323b16d Compare February 5, 2025 06:02
Copy link

changeset-bot bot commented Feb 5, 2025

🦋 Changeset detected

Latest commit: 323b16d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@liam-hq/erd-core Patch
@liam-hq/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@FunamaYukina FunamaYukina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at it several times in Safari on my mobile and the bug was fixed!😆
Thank you!

@FunamaYukina FunamaYukina added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit bba892d Feb 5, 2025
14 checks passed
@FunamaYukina FunamaYukina deleted the fix/auto-layout-on-safari branch February 5, 2025 07:06
@MH4GF
Copy link
Member

MH4GF commented Feb 5, 2025

Awesome!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants