Skip to content
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

Popover is placed incorrectly because of w-full on target #1662

Open
iBobik opened this issue Apr 13, 2024 · 2 comments
Open

Popover is placed incorrectly because of w-full on target #1662

iBobik opened this issue Apr 13, 2024 · 2 comments
Labels
bug Something isn't working v3 #1289

Comments

@iBobik
Copy link
Sponsor Contributor

iBobik commented Apr 13, 2024

Environment

  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: modules
  • Runtime Modules: @nuxt/ui@2.15.2
  • Build Modules: -

Version

2.15.2

Reproduction

https://stackblitz.com/edit/nuxt-ui-kx9ong?file=app.vue

Description

There is unnecessary w-full on the target wrapper, so the pannel is pushed to the line center while target button is usually at the line start.
Bez názvu 2

Additional context

Default ui config has this part:

trigger: 'inline-flex w-full',

Logs

No response

@iBobik iBobik added the bug Something isn't working label Apr 13, 2024
@claytonchew
Copy link
Contributor

claytonchew commented May 9, 2024

Same issue occurs for container queries @container on target.

Overriding default config seems to resolve it.

trigger: 'inline-flex',

@KevinCocquyt39
Copy link

I'm not sure if I should create a new issue/solution for this but it might help some people when using container queries. I'm currently using those and my popovers were appearing at the end of a list (in which there are cards using container queries). I solved it by using "strategy: 'absolute'" and setting a min-width on the content inside the panel.

@benjamincanac benjamincanac added the v3 #1289 label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289
Projects
None yet
Development

No branches or pull requests

4 participants