Fix dark mode card surface in workflow templates dialog (#2942)

This commit is contained in:
Christian Byrne
2025-03-10 06:57:19 -07:00
committed by GitHub
parent e29a5d3047
commit 3eb036b5e3
3 changed files with 38 additions and 11 deletions

View File

@@ -1,8 +1,7 @@
<template>
<Card
class="absolute inset-0 flex flex-col overflow-hidden rounded-2xl shadow-[0_0_15px_rgba(0,0,0,0.15),0_10px_15px_-3px_rgba(0,0,0,0.12),0_4px_6px_-4px_rgba(0,0,0,0.08)] transition-all duration-200"
class="absolute inset-0 flex flex-col overflow-hidden rounded-2xl shadow-elevation-4 dark-theme:bg-dark-elevation-1 transition-all duration-200"
:class="{
'bg-[#ffffff08]': !isLightTheme,
'outline outline-[6px] outline-[var(--p-primary-color)]': isSelected
}"
:pt="{
@@ -89,12 +88,10 @@
<script setup lang="ts">
import Card from 'primevue/card'
import { computed } from 'vue'
import ContentDivider from '@/components/common/ContentDivider.vue'
import PackInstallButton from '@/components/dialog/content/manager/PackInstallButton.vue'
import PackIcon from '@/components/dialog/content/manager/packIcon/PackIcon.vue'
import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
import type { components } from '@/types/comfyRegistryTypes'
import { formatNumber } from '@/utils/formatUtil'
@@ -102,9 +99,4 @@ defineProps<{
nodePack: components['schemas']['Node']
isSelected?: boolean
}>()
const colorPaletteStore = useColorPaletteStore()
const isLightTheme = computed(
() => colorPaletteStore.completedActivePalette.light_theme
)
</script>