This commit is contained in:
philipp lang 2025-06-17 01:44:55 +02:00
parent 752a5d7c29
commit b86fe9634f
1 changed files with 7 additions and 8 deletions

View File

@ -1,23 +1,22 @@
<template> <template>
<div class="fixed z-40 top-0 left-0 w-full h-full flex items-center justify-center p-6 bg-black/60 backdrop-blur-sm"> <div class="fixed z-40 top-0 left-0 w-full h-full flex items-center justify-center p-6 bg-black/60 backdrop-blur-sm">
<div <div class="relative rounded-lg p-8 bg-zinc-800 shadow-2xl shadow-black border border-zinc-700 border-solid w-full max-h-full flex flex-col overflow-auto"
class="relative rounded-lg p-8 bg-zinc-800 shadow-2xl shadow-black border border-zinc-700 border-solid w-full max-h-full flex flex-col overflow-auto" :class="full ? 'h-full' : innerWidth"
:class="full ? 'h-full' : innerWidth"
> >
<div class="absolute top-0 right-0 mt-6 mr-6 flex space-x-6"> <div class="absolute top-0 right-0 mt-6 mr-6 flex space-x-6">
<slot name="actions"></slot> <slot name="actions" />
<a href="#" @click.prevent="$emit('close')"> <a href="#" @click.prevent="$emit('close')">
<ui-sprite src="close" class="text-zinc-400 w-6 h-6"></ui-sprite> <ui-sprite src="close" class="text-zinc-400 w-6 h-6" />
</a> </a>
</div> </div>
<h3 v-if="heading" class="font-semibold text-primary-200 text-xl" v-html="heading"></h3> <h3 v-if="heading" class="font-semibold text-primary-200 text-xl" v-html="heading" />
<div class="text-primary-100 group is-popup grow flex flex-col"> <div class="text-primary-100 group is-popup grow flex flex-col">
<suspense> <suspense>
<div> <div>
<slot></slot> <slot />
</div> </div>
<template #fallback> <template #fallback>
<ui-loading></ui-loading> <ui-loading />
</template> </template>
</suspense> </suspense>
</div> </div>