Skip to content
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

DropdownItem content overflow hidden #3562

Open
hedwiggggg opened this issue Apr 8, 2020 · 1 comment
Open

DropdownItem content overflow hidden #3562

hedwiggggg opened this issue Apr 8, 2020 · 1 comment

Comments

@hedwiggggg
Copy link

Describe the bug

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

To Reproduce

One possible way:

  • set locale: 'de' in the config.yml

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
Copy link
Author

hedwiggggg commented Apr 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants