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

feat(richtext-lexical): various gutter, error states & add/drag handle improvements #6448

Merged
merged 6 commits into from
May 21, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented May 21, 2024

Gutter

Adds gutter by default:

CleanShot 2024-05-21 at 16 24 13

CleanShot 2024-05-21 at 16 20 23

can be disabled with admin.hideGutter

Error states

CleanShot 2024-05-21 at 16 21 18

Finally, proper error states display. Cleaner, and previously fields were shown as erroring even though they weren't. No more!

Drag & Block handles

Improved performance, and cleaned up code. Drag handle positions are now only calculated for one editor rather than all editors on the page. Add block handle calculation now uses a better algorithm to minimize the amount of nodes which are iterated.

Additionally, have you noticed how sometimes the add button jumps to the next node while the drag button is still at the previous node?

CleanShot.2024-05-21.at.16.22.55.mp4

No more! Now they behave the same. Feels a lot cleaner now.

@AlessioGr AlessioGr enabled auto-merge (squash) May 21, 2024 20:31
@AlessioGr AlessioGr merged commit 6c95287 into beta May 21, 2024
35 checks passed
@AlessioGr AlessioGr deleted the feat/lexical-gutter branch May 21, 2024 20:55
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.

None yet

1 participant