pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
464 stars 78 forks source link

Add width: max-content to select #192

Open NormandoHall opened 1 year ago

NormandoHall commented 1 year ago

If the dropdown item is more wide than dropdown, the background and color is truncated

As code has:

  .autocomplete-list-item.selected {
    background-color: #2e69e2;
    color: #fff;
  }

image

With width:

  .autocomplete-list-item.selected {
    background-color: #2e69e2;
    color: #fff;
    width: max-content;
  }

image