mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +00:00
* temp: move tailwind calls out of the layer * temp: ts tailwind config * upgrade: Tailwind v4 This got a little out of hand. Had to add a relative reference to the stylesheet in any component that uses @apply instead of the utility classes directly. * upgrade: bg-opacity is now a modifier * fix: Classic menu buttons assume a border * Update test expectations [skip ci] * fix: New preflight removal pattern * fix: Skeletons don't have skin * Update test expectations [skip ci] * fix: Missing @reference * [auto-fix] Apply ESLint and Prettier fixes --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: GitHub Action <action@github.com>
71 lines
1.5 KiB
Vue
71 lines
1.5 KiB
Vue
<!-- The main global dialog to show various things -->
|
|
<template>
|
|
<Dialog
|
|
v-for="item in dialogStore.dialogStack"
|
|
:key="item.key"
|
|
v-model:visible="item.visible"
|
|
class="global-dialog"
|
|
v-bind="item.dialogComponentProps"
|
|
:pt="item.dialogComponentProps.pt"
|
|
:aria-labelledby="item.key"
|
|
>
|
|
<template #header>
|
|
<div v-if="!item.dialogComponentProps?.headless">
|
|
<component
|
|
:is="item.headerComponent"
|
|
v-if="item.headerComponent"
|
|
:id="item.key"
|
|
/>
|
|
<h3 v-else :id="item.key">
|
|
{{ item.title || ' ' }}
|
|
</h3>
|
|
</div>
|
|
</template>
|
|
|
|
<component
|
|
:is="item.component"
|
|
v-bind="item.contentProps"
|
|
:maximized="item.dialogComponentProps.maximized"
|
|
/>
|
|
|
|
<template v-if="item.footerComponent" #footer>
|
|
<component :is="item.footerComponent" v-bind="item.footerProps" />
|
|
</template>
|
|
</Dialog>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Dialog from 'primevue/dialog'
|
|
|
|
import { useDialogStore } from '@/stores/dialogStore'
|
|
|
|
const dialogStore = useDialogStore()
|
|
</script>
|
|
|
|
<style>
|
|
@reference '../../assets/css/style.css';
|
|
|
|
.global-dialog .p-dialog-header {
|
|
@apply p-2 2xl:p-[var(--p-dialog-header-padding)];
|
|
@apply pb-0;
|
|
}
|
|
|
|
.global-dialog .p-dialog-content {
|
|
@apply p-2 2xl:p-[var(--p-dialog-content-padding)];
|
|
@apply pt-0;
|
|
}
|
|
|
|
.manager-dialog {
|
|
height: 80vh;
|
|
max-width: 1724px;
|
|
max-height: 1026px;
|
|
}
|
|
|
|
@media (min-width: 3000px) {
|
|
.manager-dialog {
|
|
max-width: 2200px;
|
|
max-height: 1320px;
|
|
}
|
|
}
|
|
</style>
|