apalfrey / select2-bootstrap-5-theme

A Select2 v4 theme for Bootstrap 5
https://apalfrey.github.io/select2-bootstrap-5-theme/
MIT License
212 stars 48 forks source link

Prevent multi-selects in input groups from breaking to next line. #79

Open lxlang opened 1 year ago

lxlang commented 1 year ago

Problem

Having a multi-select within an input-group will break to next-line, if enough elements are selected. image

Solution

Adding any width to this container will prevent it from breaking. Through flex-grow the container will use all available space.

image