decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.8k stars 3.03k forks source link

DropdownItem content overflow hidden #3562

Open hedwiggggg opened 4 years ago

hedwiggggg commented 4 years ago

Describe the bug

Content of the DropdownItem Component, that exceeds the size of the Component, will be hidden.

To Reproduce

One possible way:

Expected behavior

No overflowing content.

Screenshots Bildschirmfoto von 2020-04-08 20-30-59

Bildschirmfoto von 2020-04-08 20-31-36

Applicable Versions:

netlify-cms-app 2.12.5
netlify-cms-core 2.24.0
netlify-cms 2.10.41
os: linux x64 pop_os 19.10
browser: chrome Version 80.0.3987.163

Additional context

Can be fixed by setting the min-width: max-content property to anything different https://github.com/netlify/netlify-cms/blob/174d86f0a083a8c89e832962e3bdfe4163def428/packages/netlify-cms-ui-default/src/styles.js#L328

hedwiggggg commented 4 years ago

Bildschirmfoto von 2020-04-08 20-41-17

This could be a possible solution too, overriding the DropdownList style with:

element.style {
    right: 0;
    left: auto;
    width: auto;
}

Maybe in combination with a max-width: 200px + the fix from above. Would result in something like this: Bildschirmfoto von 2020-04-08 20-53-42