Skip to content

docs(Select/SelectMenu/InputMenu): add example with full item width #4419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

J-Michalek
Copy link
Collaborator

πŸ”— Linked issue

Resolves: #4409

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

I've added an example showing how to achieve adaptive select content width - avoiding the truncation of item content.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

pkg-pr-new bot commented Jun 28, 2025

npm i https://pkg.pr.new/@nuxt/ui@4419

commit: 4656e60

@J-Michalek
Copy link
Collaborator Author

J-Michalek commented Jun 30, 2025

We will add this type of example for SelectMenu and InputMenu as well.

@benjamincanac Is this form of the example okay with you or would you like to make some adjustments before I add it to the other two components?

@J-Michalek J-Michalek marked this pull request as draft June 30, 2025 08:36
@J-Michalek J-Michalek changed the title docs(Select): add example with full item width docs(Select/SelectMenu/InputMenu): add example with full item width Jul 1, 2025
@syazany
Copy link

syazany commented Jul 2, 2025

Hi @J-Michalek not sure if this the right place to ask for this but I think in USelectMenu content has a bug for width?

In the docs its using w-(--reka-select-trigger-width) but it should be using w-[var(--reka-popper-anchor-width)] ?

@J-Michalek
Copy link
Collaborator Author

Hi @J-Michalek not sure if this the right place to ask for this but I think in USelectMenu content has a bug for width?

In the docs its using w-(--reka-select-trigger-width) but it should be using w-[var(--reka-popper-anchor-width)] ?

Hello, it should be working fine, it is aliased to --reka-select-trigger-width.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USelect > document how to make items/options content width, fit the longest item/option width. Add an image example.
2 participants