98
Views
2
Comments
Avoid Wrapping in Dropdown
Question
Application Type
Reactive

Hello everyone,

I'm seeking some assistance with CSS to prevent long text from wrapping when selecting an option.

The challenge I'm facing is that I need to use 'Options Content = Custom' instead of 'Text Only' on the dropdown. When I select 'Text Only', the text in the dropdown is displayed correctly.

Ideally, I would like the selected value to appear like this:


But currently, it appears like this:


Here is my current CSS:

.custom-dropdown
.dropdown-container > div.dropdown-display,
.dropdown-container > select.dropdown-display {

white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
padding-right: var(--space-l);
}

I hope this makes sense. Thank you for taking a look.

CustomDropdown.oml
2023-03-03 06-59-12
Reemali patil

Hey André Smit ,

Kindly go through this, I hope this finds you well and you get your solution

https://www.outsystems.com/forums/discussion/82921/how-to-add-in-dropdown-text-overflow-ellipsis/

Best regards

Reemali.

2023-02-06 14-27-11
André Smit

Hi @Reemali patil 

Thank you for taking the time to reply.

I have attempted to follow the instructions you provided in your previous message, as can be seen in the CSS code I have written. However, despite my efforts, it seems that the solution did not work for me.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.