Topic: mdb select width fit content

sody priority asked 1 year ago


Expected behavior mdb select width is as content length/width

Actual behavior content is ignore and widtb is determined by itger clasess / container

how to set select width to be exactly content length (or even widthier for eg 20px)


NSPA priority commented 1 year ago

Facing the same problem, my workaround:

.select-dropdown-container { min-width: max-content!important;}


sody priority commented 1 year ago

great!! thank you!!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.1
  • Device: desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No