-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Feature] MediaAnything that impacts the experience of managing mediaAnything that impacts the experience of managing media[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
If I use a SVG image with the FocalPointPicker component, it will be set to a width of 0 if no width is specified in the SVG itself.
I fixed this by overriding the generated CSS like this:
.components-focal-point-picker__media--image {
width: 100%;
}
Step-by-step reproduction instructions
- Create a block with a MediaUpload control and set the media url as the (full width) background of the block.
- Insert a FocalPointPicker control into the block
- Upload a SVG image without any width attribute (like the attached one, for example)
- Try to use the Focal Point Picker, it will not be displayed correctly.
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Feature] MediaAnything that impacts the experience of managing mediaAnything that impacts the experience of managing media[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended