[Style] Update workflow template cards style (#2239)

This commit is contained in:
bymyself
2025-01-13 18:21:03 -07:00
committed by GitHub
parent 3f261f0e53
commit dd69f9dc30
2 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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"