-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Auto resize the height of template part focus mode #35974
Conversation
1e0b220
to
742ceca
Compare
Size Change: +63 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
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.
I think this is the one.
In the future it would be nice to display the pixel value somewhere on the canvas, and maybe have the width snap to popular device widths, just to doubly illustrate that this is resizing the preview, not the template part itself. But we can do that in a follow-up.
Description
Close #35512. Alternative to #35943 and #35856. Implement the design similar to the one in #35512 (comment).
Auto-resize the height of the template part focus mode with
ResizeObserver
. Also removed the preview options in the focus mode until we implement the "viewport width" options instead.How has this been tested?
tt1-blocks
themeScreenshots
Kapture.2021-10-27.at.10.36.16.mp4
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).