-
Notifications
You must be signed in to change notification settings - Fork 42
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
The PickedItem component does not show up nicely #34
Comments
Can you open up a PR? |
I checked this on develop; now it looks like this Tested in this setup: <InspectorControls>
<PanelBody>
<ContentPicker
onPickChange={(pickedContent) => {
console.log(pickedContent);
}}
mode="post"
label="Please select a Post or Page:"
contentTypes={['post', 'page']}
/>
</PanelBody>
</InspectorControls> I quickly checked out an older commit (before the reported issue in develop) and it is still working nicely. Would it be some browser support issue? I think the screenshot is from Chrome however... The No-wrap is working nicely with the text-overflow here. If it is removed, the full title can be made visible (maybe a good idea) but it will go on multiple lines then like this. |
Just doing some additional research on this one, it looks like it may have been resolved in Gutenberg via WordPress/gutenberg#33586 (comment). When I checked in a local 5.9.1 install, title text was wrapping (I think this was changed with 5.9). As for stripping the HTML, we could put something in, but I get the feeling that it was project specific. When I pulled down the most recent code on it, it was no longer an issue due to some added conditionals checking for REST requests from the filter that introduced that additional markup. If we're OK with that being a project specific bug, we may be able to close. |
@Firestorm980 I took a look at this also and as not able to replicate it on a current clean setup. I'm going to close if for now. Feel free to reopen if you ever encounter it again. |
Describe the bug
The contentPicker has some stylistic issues when used in inspector controls. It also has some html issues.
.block-editor-link-control__search-item-title
is set to have white-space: nowrap; This causes the item to go offscreen and the "X" cannot be reached to remove the post from the list.** Fix **
In PickedItem.js on line 80, maybe we can remove the entities completely:
The same would be done in SearchItem.js on line 38.
As for the CSS that would need to be scoped to the Inspector.
Screenshots
The text was updated successfully, but these errors were encountered: