nuxt / nuxt/ui

min-w-fit doesnt work with virtualize

Open
#6,771 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Environment

https://ui.nuxt.com/docs/components/select-menu#with-full-content-width

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

4.10.0

Reproduction

The options are shortened when virtualize is activated. It overrules the min-w-fit.

Description

Maybe a width param is needed inside virtualize to expand the width of the dropdown again

Additional context

No response

Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Select Menu example at the linked documentation URL and reproduce the shortened options with virtualize enabled, comparing it with the full-content-width behavior without virtualization. Trace how min-w-fit is applied in the virtualized dropdown; done means the options retain the required width when virtualize is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, tailwindcss, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.