Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/card/CardContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const containerClasses = computed(() => {
'cursor-pointer flex flex-col bg-white dark-theme:bg-zinc-800 rounded-lg shadow-sm border border-zinc-200 dark-theme:border-zinc-700 overflow-hidden'

if (type === 'workflow-template-card') {
return `cursor-pointer p-2 flex flex-col hover:bg-white dark-theme:hover:bg-zinc-800 rounded-lg transition-background duration-200 ease-in-out`
return `cursor-pointer flex flex-col bg-white dark-theme:bg-zinc-900 rounded-lg shadow-sm border border-zinc-200 dark-theme:border-zinc-700 overflow-hidden hover:bg-white dark-theme:hover:bg-zinc-800 transition-background duration-200 ease-in-out`
}

const ratioClasses = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/chip/SquareChip.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="inline-flex justify-center items-center gap-1 shrink-0 py-1 px-2 text-xs bg-[#D9D9D966]/40 rounded font-bold text-white/90"
class="inline-flex justify-center items-center gap-1 shrink-0 py-1 px-2 text-xs bg-black/20 rounded font-bold text-white/90"
>
<slot name="icon" class="text-xs text-white/90"></slot>
<span>{{ label }}</span>
Expand Down
53 changes: 22 additions & 31 deletions src/components/custom/widget/WorkflowTemplateSelectorDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@
<CardTop ratio="square">
<template #default>
<!-- Template Thumbnail -->
<div
class="w-full h-full relative rounded-lg overflow-hidden"
>
<div class="w-full h-full relative overflow-hidden">
<template v-if="template.mediaType === 'audio'">
<AudioThumbnail :src="getBaseThumbnailSrc(template)" />
</template>
Expand Down Expand Up @@ -251,6 +249,19 @@
v-if="loadingTemplate === template.name"
class="absolute inset-0 z-10 w-12 h-12 m-auto"
/>
<button
v-if="template.tutorialUrl"
v-tooltip.bottom="{
value: $t('g.seeTutorial'),
pt: {
text: { class: 'text-sm' }
}
}"
class="absolute top-2 right-2 z-20 inline-flex items-center justify-center rounded-lg bg-black/20 w-8 h-8 cursor-pointer border-0"
@click.stop="openTutorial(template)"
>
<i class="pi pi-question-circle text-white/80 text-lg" />
</button>
</div>
</template>
<template #bottom-right>
Expand All @@ -266,9 +277,9 @@
</template>
<template #bottom>
<CardBottom>
<div class="flex flex-col gap-2 pt-3">
<div class="flex flex-col gap-2 p-4">
<h3
class="line-clamp-1 text-sm m-0"
class="line-clamp-2 text-lg font-medium m-0"
:title="
getTemplateTitle(
template,
Expand All @@ -283,31 +294,12 @@
)
}}
</h3>
<div class="flex justify-between gap-2">
<div class="flex-1">
<p
class="line-clamp-2 text-sm text-muted m-0"
:title="getTemplateDescription(template)"
>
{{ getTemplateDescription(template) }}
</p>
</div>
<div
v-if="template.tutorialUrl"
class="flex flex-col-reverse justify-center"
>
<IconButton
v-if="hoveredTemplate === template.name"
v-tooltip.bottom="$t('g.seeTutorial')"
v-bind="$attrs"
type="primary"
size="sm"
@click.stop="openTutorial(template)"
>
<i class="icon-[lucide--info] size-4" />
</IconButton>
</div>
</div>
<p
class="line-clamp-5 text-sm text-muted m-0"
:title="getTemplateDescription(template)"
>
{{ getTemplateDescription(template) }}
</p>
</div>
</CardBottom>
</template>
Expand Down Expand Up @@ -378,7 +370,6 @@ import ProgressSpinner from 'primevue/progressspinner'
import { computed, onBeforeUnmount, provide, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'

import IconButton from '@/components/button/IconButton.vue'
import IconTextButton from '@/components/button/IconTextButton.vue'
import CardBottom from '@/components/card/CardBottom.vue'
import CardContainer from '@/components/card/CardContainer.vue'
Expand Down