I'm using vue-multiselect in single-select mode and trying to apply styles to make options dropdown list be same width as most wide option. I achieved this, but can't get .multiselect__option be same width as parent .multiselect__element:
https://jsfiddle.net/xo9f7jby/30/
.multiselect {
width: fit-content
}
.multiselect__content-wrapper, .multiselect__element {
width: fit-content;
}
.multiselect__option {
width: 100%;
}
One simple solution would be to remove fit-content
from .multiselect__element
:
.multiselect__content-wrapper /*, .multiselect__element */ {
width: fit-content;
}
Updated fiddle: https://jsfiddle.net/xo9f7jby/33/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With