-
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
Try to fix auto resizing in template part focus mode #37394
Conversation
// Some themes will have `min-height: 100vh` for the root container, | ||
// which isn't a requirement in auto resize mode. | ||
<style> | ||
{ `.is-root-container { min-height: 0 !important; }` } |
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.
Not entirely sure if this makes sense in all cases though 🤔 .
Size Change: +1.69 kB (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
@jameskoster Just being curious, why would anyone wants to add border the the |
Interesting 🤔 ! I just pushed bc1a27b trying to fix this issue using a different approach (accessing |
Bingo :D I tried a bunch of block themes for the directory and didn't see any issues except for one: Bai theme. I couldn't see anything in the markup that would cause this, so maybe worth a check? |
@jameskoster Nice catch! I pushed some changes to address that as well. I also removed |
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.
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.
Thanks, @kevin940726. The changes look good to me.
* Try to fix auto resizing in template part focus mode * Force min-height: 0 in auto resize mode * Try fixing border issue and fix firefox bugs * Force min-height: 0 for body and html * Remove mutation observer
Description
Close #36141.
Try to fix auto resizing in Template Part focus mode with two changes:
height: fit-content
for<body>
and<html>
.min-height: 0
for the root containers.How has this been tested?
tt1-blocks
orQuadrat
.Screenshots
tt1-blocks
Quadrat
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).