-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[lexical-table] Support table alignment #7044
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Rewrote this with classNames vs using 'style', to leave the option for overridability to users, but unsure if ended up any better because I couldn't get the class waterfall to work nicely without !imporant to override the margins. In both cases (style vs classNames) it works correctly with both with and without tableWrapper |
packages/lexical-playground/src/themes/PlaygroundEditorTheme.css
Outdated
Show resolved
Hide resolved
Thanks @etrepum, implemented the PR comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked closely at the changes but there are test failures now
Addressed |
@etrepum could we wrap this one up please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, and confirmed that it works as expected in the playground
Fixes #6909
To differentiate between table alignment and cell text alignment, the table-level alignment logic only kicks in when the selection is the whole exact table. This does introduce the extra step if one wants to align all cell texts to do it in 2 steps, all columns except one and then the last column.
Before:
Screen.Recording.2025-01-12.at.19.57.08.mov
After:
Screen.Recording.2025-01-12.at.19.57.43.mov