Skip to content

Commit aebf339

Browse files
committed
fix(web): broken modals
1 parent 5209df2 commit aebf339

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

web/components/Modal.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const computedVerticalCenter = computed<string>(() => {
7171
</script>
7272

7373
<template>
74-
<TransitionRoot appear :show="open" as="template">
74+
<TransitionRoot appear :show="open">
7575
<div
7676
class="fixed inset-0 z-10 overflow-y-auto"
7777
role="dialog"
@@ -86,7 +86,6 @@ const computedVerticalCenter = computed<string>(() => {
8686
>
8787
<TransitionChild
8888
appear
89-
as="template"
9089
enter="duration-300 ease-out"
9190
enter-from="opacity-0"
9291
enter-to="opacity-100"
@@ -102,7 +101,6 @@ const computedVerticalCenter = computed<string>(() => {
102101
</TransitionChild>
103102
<TransitionChild
104103
appear
105-
as="template"
106104
enter="duration-300 ease-out"
107105
enter-from="opacity-0 scale-95"
108106
enter-to="opacity-100 scale-100"
@@ -185,7 +183,6 @@ const computedVerticalCenter = computed<string>(() => {
185183

186184
<TransitionChild
187185
appear
188-
as="template"
189186
enter="duration-300 ease-out"
190187
enter-from="opacity-0"
191188
enter-to="opacity-100"

web/components/UserProfile/Dropdown.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<script setup lang="ts">
2-
import { TransitionRoot } from '@headlessui/vue';
32
import { storeToRefs } from 'pinia';
3+
4+
import { TransitionRoot } from '@headlessui/vue';
5+
46
import type { ComposerTranslation } from 'vue-i18n';
57
68
import { useDropdownStore } from '~/store/dropdown';
79
import { useServerStore } from '~/store/server';
810
9-
defineProps<{ t: ComposerTranslation; }>();
11+
defineProps<{ t: ComposerTranslation }>();
1012
1113
const dropdownStore = useDropdownStore();
1214
@@ -18,7 +20,6 @@ const showLaunchpad = computed(() => state.value === 'ENOKEYFILE');
1820

1921
<template>
2022
<TransitionRoot
21-
as="template"
2223
:show="dropdownVisible"
2324
enter="transition-all duration-200"
2425
enter-from="opacity-0 translate-y-[16px]"
@@ -27,7 +28,9 @@ const showLaunchpad = computed(() => state.value === 'ENOKEYFILE');
2728
leave-from="opacity-100"
2829
leave-to="opacity-0 translate-y-[16px]"
2930
>
30-
<UpcDropdownWrapper class="DropdownWrapper_blip text-foreground absolute z-30 top-full right-0 transition-all">
31+
<UpcDropdownWrapper
32+
class="DropdownWrapper_blip text-foreground absolute z-30 top-full right-0 transition-all"
33+
>
3134
<UpcDropdownLaunchpad v-if="showLaunchpad" :t="t" />
3235
<UpcDropdownContent v-else :t="t" />
3336
</UpcDropdownWrapper>

0 commit comments

Comments
 (0)