-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Dimensions: Add Aspect Ratio block support #56897
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
Merged
andrewserong
merged 14 commits into
trunk
from
try/dimensions-aspect-ratio-block-support
Jan 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
15caba6
Try: Dimensions Aspect Ratio block support
andrewserong 280dda5
Try server-rendering output
andrewserong 5008b52
Try outputting has-aspect-ratio classname
andrewserong 2748fd0
Ensure block support is checked properly
andrewserong aed99ad
Try adding global styles support
andrewserong d1ce660
Update docs, add appropriate checks
andrewserong 176860a
Try unsetting minHeight
andrewserong bbc6868
Try unsetting min-height when applying aspect ratio and vice versa
andrewserong 96daf32
Allow Cover block to expand when the content extends beyond the bound…
andrewserong 051bb7f
Hide cover block resize handle when aspect ratio is set, clear aspect…
andrewserong ef7149d
Clear aspect-ratio if minHeight is set on the site frontend
andrewserong 2c9107d
Attempt to get unset rules playing nicely in the editor with global s…
andrewserong 39873bf
Hide aspectRatio control from global styles for the group block
andrewserong 7e14457
Skip output of has-aspect-ratio if value isn't set
andrewserong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Try unsetting min-height when applying aspect ratio and vice versa
- Loading branch information
commit bbc68680c76d3f6708e4148468786461a193b565
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Looks like min-height is already getting removed when aspect-ratio is set in global styles, so do we still need this here?
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.
Yes — we need the
min-height: unsetin global styles output (which is this part of the code) so that we unset the Cover block (or any other block's) default min-height value that might be in use.