nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - label overflow in select

Open vivek-quantech opened this issue 2 years ago • 6 comments

NextUI Version

2.3.6

Describe the bug

I have used select. The label of the select is larger then width of select. when I choose one option then the label overflow from the select UI. Screenshot 2024-04-24 130702

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Use @nextui-org/select.
  2. Give 20% width and make sure the label is larger than the width of select.
  3. Select the option which is larger than the width of switch Screenshot 2024-04-24 130940

Expected behavior

As a user , the label should be inside the select, It should not overflow outside the select Screenshot 2024-04-24 130702

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

vivek-quantech avatar Apr 24 '24 07:04 vivek-quantech

  1. can you try on the latest version? we've changed quite a lot.
  2. if the latest version doesn't solve the problem. Please share your code or even a stackblitz link for us to have the same setup to reproduce the issue.

wingkwong avatar Apr 24 '24 08:04 wingkwong

Sure , will try and let you know. Thank You!!

vivek-quantech avatar Apr 24 '24 09:04 vivek-quantech

I've created a new Next.js app and integrated the latest version of the NextUI library. I'm still experiencing an issue where the content of the select options overflows after selecting one.

Stackblitz link

vivek-quantech avatar Apr 25 '24 11:04 vivek-quantech

This is what I see. I think you missed some setup as I see the styles are quite different in stackblitz link.

image

wingkwong avatar Apr 30 '24 15:04 wingkwong

@vivek-quantech Please confirm that this issue was solved at the current version through this video. Thank you 🙏 @wingkwong I will request that we can close this issue

https://github.com/nextui-org/nextui/assets/62743644/b353b7b3-316c-4f53-81c0-1f399e732eca

harukikuri avatar Jul 08 '24 01:07 harukikuri