mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
## Summary Remove Tailwind `@apply` from Vue styles across `src/` and `apps/desktop-ui/src/` to align with Tailwind v4 guidance, replacing usages with template utilities or native CSS while preserving behavior. ## Changes - **What**: - Batch 1: migrated low-risk template/style utility bundles out of `@apply`. - Batch 2: converted PrimeVue/`:deep()` override `@apply` blocks to native CSS declarations. - Batch 3: converted `src/components/node/NodeHelpContent.vue` markdown styling from `@apply` to native CSS/token-based declarations. - Batch 4: converted final desktop pseudo-element `@apply` styles and removed stale `@reference` directives no longer required. - Verified `rg -n "^\s*@apply\b" src apps -g "*.vue"` has no real CSS `@apply` directives remaining (only known template false-positive event binding in `NodeSearchContent.vue`). ## Review Focus - Visual parity in components that previously depended on `@apply` in `:deep()` selectors and markdown content: - topbar tabs/popovers, dialogs, breadcrumb, terminal overrides - desktop install/dialog/update/maintenance surfaces - node help markdown rendering - Confirm no regressions from removal of now-unneeded `@reference` directives. ## Screenshots (if applicable) - No new screenshots included in this PR. - Screenshot Playwright suite was run with `--grep="@screenshot"` and reports baseline diffs in this environment (164 passed, 39 failed, 3 skipped) plus a teardown `EPERM` restore error on local path `C:\Users\DrJKL\ComfyUI\LTXV\user`. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9146-fix-eradicate-tailwind-apply-usage-in-vue-styles-3116d73d3650813d8642e0bada13df32) by [Unito](https://www.unito.io) --------- Co-authored-by: Amp <amp@ampcode.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
83 lines
2.1 KiB
Vue
83 lines
2.1 KiB
Vue
<template>
|
|
<BaseViewTemplate dark>
|
|
<div
|
|
class="h-screen w-screen grid 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 w-48 h-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>
|