mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-06 07:29:39 +00:00
b4d89a1cce
closes #83 closes #240 Co-authored-by: Anbraten <anton@ju60.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
25 lines
577 B
Vue
25 lines
577 B
Vue
<template>
|
|
<!-- overlay -->
|
|
<div
|
|
v-if="open"
|
|
class="fixed bg-gray-900 opacity-80 left-0 top-0 right-0 bottom-0 z-500 print:hidden"
|
|
@click="$emit('close')"
|
|
/>
|
|
<!-- overlay end -->
|
|
<transition class="print:hidden fixed flex top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
|
|
<div v-if="open" class="m-auto flex flex-col shadow-all z-1000 max-w-3/5 max-h-3/5 h-auto">
|
|
<slot />
|
|
</div>
|
|
</transition>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
defineProps<{
|
|
open: boolean;
|
|
}>();
|
|
|
|
defineEmits<{
|
|
(event: 'close'): void;
|
|
}>();
|
|
</script>
|