-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Refactor Featured Image Block to use aspectRatio
block support
#61432
Comments
Hi @fabiankaegy, I would like to take this up. I have scratch up my head a bit and found that we need to add the We need to remove the gutenberg/packages/block-library/src/post-featured-image/dimension-controls.js Lines 99 to 100 in 613c05e
figure here in case, for which we need to add the height and width 100% to make that work, which is also written based on the aspect ratio attribute gutenberg/packages/block-library/src/post-featured-image/index.php Lines 44 to 45 in 613c05e
Now, if we need to remove the So can you please guide me on this, how can we approach this and what could be the starting point. I tried to take some reference from the I see some reference 2e01f22#diff-7a048d7d7e1773a2805d9c622740508c9572015140912830a9ac81d5a0f9fe01 for the cover block. I hope this can be act as starting point for the same. Thank You ✨. |
I have raised the PR - #61485, to update the Thank You 🙏. |
Thank you, @hbhalodia! I'll try to have a look as soon as I've some free time. |
The featured image block currently has a manual control for handling the Aspect Ratio setting. This is redundant because we now have the
aspectRatio
block support which can handle this for us.The text was updated successfully, but these errors were encountered: