Closed sandros94 closed 7 months ago
This also happens with Popper
Have you tried changing the strategy
to absolute
?
<template>
<div class="not-prose @container/languages w-fit">
<UDropdown :items="languages" :popper="{ arrow: true, placement:'top', strategy: 'absolute' }">
<UButton
:padded="false"
class="rounded-full no-underline"
icon="i-heroicons-language"
size="2xl"
variant="ghost"
/>
</UDropdown>
</div>
</template>
You might need to set a width
through the ui
prop.
I didn't know the strategy
option and indeed that was it.
You might need to set a
width
through theui
prop.
With something like a button
that already has a fixed size it seem not to be required (if you were talking about the dropdown
's ui
prop).
Environment
Version
v2.13.0
Reproduction
Description
Sometimes images tells more than words...
Removing
@container/languages
or any other container query, from any parent, fixes the issue.Additional context
No response
Logs
No response