Skip to content

Commit

Permalink
fix: headless ui float transition
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Dec 8, 2023
1 parent ffd763b commit d50fad9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions components/base/BaseDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ const placementValue = computed(() => {
class="nui-menu"
>
<Float
enter-active-class="transition duration-100 ease-out"
enter-from-class="transform scale-95 opacity-0"
enter-to-class="transform scale-100 opacity-100"
leave-active-class="transition duration-75 ease-in"
leave-from-class="transform scale-100 opacity-100"
leave-to-class="transform scale-95 opacity-0"
enter="transition duration-100 ease-out"
enter-from="transform scale-95 opacity-0"
enter-to="transform scale-100 opacity-100"
leave="transition duration-75 ease-in"
leave-from="transform scale-100 opacity-100"
leave-to="transform scale-95 opacity-0"
flip
:offset="props.flavor === 'context' ? 6 : 4"
:strategy="props.fixed ? 'fixed' : 'absolute'"
Expand Down
6 changes: 3 additions & 3 deletions components/form/BaseListbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ const value = computed(() => {
>
<Float
composable
leave-active-class="transition duration-100 ease-in"
leave-from-class="opacity-100"
leave-to-class="opacity-0"
leave="transition duration-100 ease-in"
leave-from="opacity-100"
leave-to="opacity-0"
flip
:offset="5"
:strategy="props.fixed ? 'fixed' : 'absolute'"
Expand Down

0 comments on commit d50fad9

Please sign in to comment.