mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
## Summary - move queue batch controls to the left of the run button - align run control styling to the Figma queue modal spec using PrimeVue PT/Tailwind (secondary background on batch + dropdown, primary run button) - normalize control heights to match actionbar buttons and tighten dropdown hit area - update run typography/spacing and replace all three chevrons (dropdown + batch up/down) with the requested SVG Design: https://www.figma.com/design/LVilZgHGk5RwWOkVN6yCEK/Queue-Progress-Modal?node-id=3845-23904&m=dev <img width="303" height="122" alt="image" src="https://github.com/user-attachments/assets/4ed80ee7-3ceb-4512-96ce-f55ec6da835e" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9134-fix-align-run-controls-with-queue-modal-design-3106d73d36508160afcedbcfe4b98291) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: GitHub Action <action@github.com>
83 lines
2.1 KiB
Vue
83 lines
2.1 KiB
Vue
<template>
|
|
<BaseViewTemplate dark>
|
|
<div
|
|
class="grid h-screen w-screen items-center justify-around overflow-y-auto"
|
|
>
|
|
<div class="relative m-8 text-center">
|
|
<!-- Header -->
|
|
<h1 class="download-bg pi-download text-4xl font-bold">
|
|
{{ $t('desktopUpdate.title') }}
|
|
</h1>
|
|
|
|
<div class="m-8">
|
|
<span>{{ $t('desktopUpdate.description') }}</span>
|
|
</div>
|
|
|
|
<ProgressSpinner class="m-8 size-48" />
|
|
|
|
<!-- Console button -->
|
|
<Button
|
|
style="transform: translateX(-50%)"
|
|
class="fixed bottom-0 left-1/2 my-8"
|
|
:label="$t('maintenance.consoleLogs')"
|
|
icon="pi pi-desktop"
|
|
icon-pos="left"
|
|
severity="secondary"
|
|
@click="toggleConsoleDrawer"
|
|
/>
|
|
|
|
<TerminalOutputDrawer
|
|
v-model="terminalVisible"
|
|
:header="$t('g.terminal')"
|
|
:default-message="$t('desktopUpdate.terminalDefaultMessage')"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<Toast />
|
|
</BaseViewTemplate>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Button from 'primevue/button'
|
|
import ProgressSpinner from 'primevue/progressspinner'
|
|
import Toast from 'primevue/toast'
|
|
import { onUnmounted, ref } from 'vue'
|
|
|
|
import TerminalOutputDrawer from '@/components/maintenance/TerminalOutputDrawer.vue'
|
|
import { electronAPI } from '@/utils/envUtil'
|
|
|
|
import BaseViewTemplate from './templates/BaseViewTemplate.vue'
|
|
|
|
const electron = electronAPI()
|
|
|
|
const terminalVisible = ref(false)
|
|
|
|
const toggleConsoleDrawer = () => {
|
|
terminalVisible.value = !terminalVisible.value
|
|
}
|
|
|
|
onUnmounted(() => electron.Validation.dispose())
|
|
</script>
|
|
|
|
<style scoped>
|
|
.download-bg::before {
|
|
position: absolute;
|
|
margin: 0;
|
|
color: var(--muted-foreground);
|
|
font-family: 'primeicons', sans-serif;
|
|
top: -2rem;
|
|
right: 2rem;
|
|
speak: none;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-variant: normal;
|
|
text-transform: none;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
-webkit-font-smoothing: antialiased;
|
|
opacity: 0.02;
|
|
font-size: min(14rem, 90vw);
|
|
z-index: 0;
|
|
}
|
|
</style>
|