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

Remove rows w/ span support #4078

Merged
merged 1 commit into from
Mar 11, 2023
Merged

Remove rows w/ span support #4078

merged 1 commit into from
Mar 11, 2023

Conversation

zurfyx
Copy link
Member

@zurfyx zurfyx commented Mar 9, 2023

Given our rectangular selection that can automatically span beyond the initial intended selection, the best UX friendly algo to remove rows seems to be Apple Pages: we remove all rows that are contained within the selection and if there are conflicting merged cells beyond the selection we trim those cells.

Surprisingly, Quip, which does rectangular selection decided to just simply remove the row itself (trimming the selected node instead) (which imo can get confusing when it's a merged cell). This makes more sense on a GDoc approach as they don't guarantee rectangular selection.

Screen.Recording.2023-03-09.at.11.27.50.AM.mov
Screen.Recording.2023-03-09.at.11.55.21.AM.mov

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 9, 2023
@vercel
Copy link

vercel bot commented Mar 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
lexical ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 11, 2023 at 1:54AM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 11, 2023 at 1:54AM (UTC)

@thegreatercurve thegreatercurve removed the request for review from trueadm March 10, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants