decentraland / decentraland/creator-hub

Field width wide as longest option, not current value

Open
#200 0 comments 0 reactions 0 assignees View on GitHub
3-low editor good first issue
Dominant language
TypeScript
Stars
7
Forks
14
Avg merge
2d 8h
Merged PRs (30d)
44

Description

When I'm selecting a condition in the trigger conditions, the width of the type of condition is really wide, much more than the text inside

![Image](https://github.com/decentraland/creator-hub/assets/3507907/ddd19f3e-9438-41ec-b00c-4beef29955c6)

I realize that this is because in the drop down, there is one option that is pretty long

![Image](https://github.com/decentraland/creator-hub/assets/3507907/0d525e43-372b-4ff8-b712-4e6e858161fa)

This is a problem here because I have to stretch the menu quite a lot to get the more legible 1 row per condition format. In a more normal situation I get this ugly 3 lines per condition layout that is very hard to follow

![Image](https://github.com/decentraland/creator-hub/assets/3507907/65ee8663-8746-4379-add8-1c3ef16714a9)

The width of the field should match the selected value. If I select a value that is wider, then I can readjust the width to that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.