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(presets): no frame preview in sidebar #6124

Merged

Conversation

donteatfriedrice
Copy link
Member

@donteatfriedrice donteatfriedrice commented Jan 25, 2024

To fix:
TOV-487
TOV-489

Screen.Recording.2024-01-26.at.02.21.15.mov

Todo:

  • Add some tests.

Copy link

vercel bot commented Jan 25, 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 Jan 26, 2024 3:09am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Jan 26, 2024 3:09am

@donteatfriedrice donteatfriedrice marked this pull request as draft January 25, 2024 14:40
@donteatfriedrice donteatfriedrice changed the title fix(preset): no frame preview in sidebar fix(presets): no frame preview in sidebar Jan 25, 2024
@@ -182,7 +182,7 @@ export class FramePanelHeader extends WithDisposable(LitElement) {
this._settingPopperShow = display === 'show';
},
14,
-120
Copy link
Member

Choose a reason for hiding this comment

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

Is this modification made to solve the TOV-487 issue? It seems to have shifted only a few pixels. In AFFiNE, this panel is set to overflow:hidden, can Blocksuite mount the Popup to the body instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

The frame panel setting popup seems not to be hidden. This line is just used to adjust the position.

Copy link
Member

Choose a reason for hiding this comment

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

It may be clipped in AFFiNE, I think it's better to mount Popup under body if it's supported in blocksuite.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I'll check whether can mount the panel Popup under body.

Copy link
Member

@doouding doouding left a comment

Choose a reason for hiding this comment

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

Adding some basic tests is expected :)

@donteatfriedrice donteatfriedrice merged commit 9b34bdb into toeverything:master Jan 26, 2024
19 checks passed
@donteatfriedrice
Copy link
Member Author

Adding some basic tests is expected :)

I'll add some later.

@donteatfriedrice donteatfriedrice deleted the fix/no-frame-preview branch January 30, 2024 02:14
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

4 participants