[wp-trac] [WordPress Trac] #59621: Image block resizes image by clicking anywhere along the side (without dragging)
WordPress Trac
noreply at wordpress.org
Mon Oct 30 14:57:48 UTC 2023
#59621: Image block resizes image by clicking anywhere along the side (without
dragging)
----------------------------------+------------------------------
Reporter: inspiredtaste | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: major | Resolution:
Keywords: move-to-github close | Focuses:
----------------------------------+------------------------------
Comment (by sabernhardt):
Instead of removing the width and height fields, you could try overriding
styles in the editor.
Adding //admin// CSS via a plugin such as [https://wordpress.org/plugins
/custom-css-js/ Simple Custom CSS and JS] could be friendlier than using
the `enqueue_block_editor_assets` action. However, admin CSS would **not**
apply within the new iframe editor. Some plugins disable the iframe
automatically, such as WooCommerce, Yoast SEO and All-in-One SEO. If you
do not have or want any of those plugins, you also could go to Preferences
(in the Options menu) and enable the Custom Fields panel.
Hide the handles entirely:
{{{
.components-resizable-box__container.has-show-handle .components-
resizable-box__handle {
display: none;
}
}}}
Make the handles much smaller:
{{{
.components-resizable-box__container.has-show-handle .components-
resizable-box__handle {
width: 2px;
height: 2px;
}
.components-resizable-box__container .components-resizable-box__handle-
left {
left: -1px;
top: 50%;
}
.components-resizable-box__container .components-resizable-box__handle-
right {
right: -1px;
top: 50%;
}
.components-resizable-box__container .components-resizable-box__handle-
bottom {
bottom: -1px;
left: 50%;
right: 50%;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59621#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list