mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[Style] Update workflow template cards style (#2239)
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex items-center justify-center">
|
<div class="flex items-center justify-center">
|
||||||
<div
|
<div
|
||||||
class="relative overflow-hidden rounded-lg cursor-pointer w-64 h-64"
|
class="relative overflow-hidden rounded-t-lg cursor-pointer w-64 h-64"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
v-if="!imageError"
|
v-if="!imageError"
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
: `api/workflow_templates/${props.moduleName}/${props.workflowName}.jpg`
|
: `api/workflow_templates/${props.moduleName}/${props.workflowName}.jpg`
|
||||||
"
|
"
|
||||||
@error="imageError = true"
|
@error="imageError = true"
|
||||||
class="w-64 h-64 rounded-lg object-cover thumbnail"
|
class="w-64 h-64 rounded-t-lg object-cover thumbnail"
|
||||||
/>
|
/>
|
||||||
<div v-else class="w-64 h-64 content-center text-center">
|
<div v-else class="w-64 h-64 content-center text-center">
|
||||||
<i class="pi pi-file" style="font-size: 4rem"></i>
|
<i class="pi pi-file" style="font-size: 4rem"></i>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
:key="selectedTab.moduleName"
|
:key="selectedTab.moduleName"
|
||||||
>
|
>
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div @click="loadWorkflow(slotProps.data)">
|
<div @click="loadWorkflow(slotProps.data)" class="p-2">
|
||||||
<TemplateWorkflowCard
|
<TemplateWorkflowCard
|
||||||
:moduleName="selectedTab.moduleName"
|
:moduleName="selectedTab.moduleName"
|
||||||
:workflowName="slotProps.data"
|
:workflowName="slotProps.data"
|
||||||
|
|||||||
Reference in New Issue
Block a user