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: add block on clicking page bottom when necessary #3028

Merged
merged 3 commits into from
Jun 9, 2023

Conversation

QiShaoXuan
Copy link
Contributor

@QiShaoXuan QiShaoXuan commented Jun 9, 2023

  1. if click bottom of page and the end block is embed, editor should insert a new editable block
  2. if click bottom of page and the end block is editable, the last editable block should be focused

@codesandbox
Copy link

codesandbox bot commented Jun 9, 2023

This branch is running in CodeSandbox. Use the links below to review this PR faster.


CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@vercel
Copy link

vercel bot commented Jun 9, 2023

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

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2023 8:53am
blocksuite-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2023 8:53am

@QiShaoXuan QiShaoXuan changed the title fix: if click bottom of page and the end block is embed, editor shoul… fix: if click bottom of page Jun 9, 2023
@QiShaoXuan QiShaoXuan changed the title fix: if click bottom of page fix: click bottom of page Jun 9, 2023
Copy link
Member

@doodlewind doodlewind left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement!

@doodlewind doodlewind changed the title fix: click bottom of page feat: add block on clicking page bottom when necessary Jun 9, 2023
@doodlewind doodlewind enabled auto-merge (squash) June 9, 2023 08:45
@doodlewind doodlewind merged commit e7c8c26 into toeverything:master Jun 9, 2023
17 of 19 checks passed
return pageBlock?.getBoundingClientRect() || null;
});

assert(pageRect !== null);
Copy link
Member

Choose a reason for hiding this comment

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

You should use expect from playwright

@QiShaoXuan QiShaoXuan deleted the fix/click-bottom branch July 4, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants