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

fix(edgeless): optimize ai panel user experience #6810

Merged
merged 9 commits into from
Apr 23, 2024

Conversation

fundon
Copy link
Contributor

@fundon fundon commented Apr 18, 2024

Closes: AFF-902,AFF-901,AFF-908

Copy link

vercel bot commented Apr 18, 2024

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 Apr 23, 2024 1:42am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 1:42am

Copy link

graphite-app bot commented Apr 18, 2024

Your org has enabled the Graphite merge queue for merging into master

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

fundon commented Apr 18, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @fundon and the rest of your teammates on Graphite Graphite

@fundon fundon changed the title fix(blocks): optimize ai panel fix(blocks): optimize user experience with ai panel Apr 18, 2024
@fundon fundon changed the title fix(blocks): optimize user experience with ai panel fix(blocks): optimize ai panel user experience Apr 19, 2024
@fundon fundon marked this pull request as ready for review April 22, 2024 12:10
@doouding
Copy link
Member

doouding commented Apr 22, 2024

By the way, changing the issue ID in the description to the links would be better because others can go to that link directly :)

@doouding doouding changed the title fix(blocks): optimize ai panel user experience fix(edgeless): optimize ai panel user experience Apr 23, 2024
@doouding doouding merged commit cdd4b4a into master Apr 23, 2024
20 checks passed
@doouding doouding deleted the 04_18_optimize-ai-panel branch April 23, 2024 02:15
@@ -75,10 +75,7 @@ export class EdgelessShapeToolButton extends EdgelessToolButton<
}

.container-clip {
padding: 10000px 10000px 0;
Copy link
Member

@CatsJuice CatsJuice May 26, 2024

Choose a reason for hiding this comment

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

Led to some unexpected effects #7139

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A very large layer will be created here.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that's expected, to achieve the effect of overflow: clip only on the bottom edge. Is there any performance issue or other problem with this approach?

Copy link
Contributor Author

@fundon fundon May 26, 2024

Choose a reason for hiding this comment

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

The layer is always there.

You can consider trying canvas overlayer, or create a separate element outside(fixed/absolute).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-05-26 at 12 45 37

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's expected, to achieve the effect of overflow: clip only on the bottom edge

clip does not work on padding

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