Skip to content

Commit 3806ba3

Browse files
Increase template card titles' line height to 2 lines (#3722)
1 parent 878aedb commit 3806ba3

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/components/templates/TemplateWorkflowCard.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<Card
33
ref="cardRef"
44
:data-testid="`template-workflow-${template.name}`"
5-
class="w-64 template-card rounded-2xl overflow-hidden cursor-pointer shadow-elevation-2 dark-theme:bg-dark-elevation-1"
5+
class="w-64 template-card rounded-2xl overflow-hidden cursor-pointer shadow-elevation-2 dark-theme:bg-dark-elevation-1 h-full"
66
:pt="{
7-
body: { class: 'p-0' }
7+
body: { class: 'p-0 h-full flex flex-col' }
88
}"
99
@click="$emit('loadWorkflow', template.name)"
1010
>
@@ -51,11 +51,11 @@
5151
</template>
5252
<template #content>
5353
<div class="flex items-center px-4 py-3">
54-
<div class="flex-1">
55-
<h3 class="line-clamp-1 text-lg font-normal" :title="title">
54+
<div class="flex-1 flex flex-col">
55+
<h3 class="line-clamp-2 text-lg font-normal mb-0 h-10" :title="title">
5656
{{ title }}
5757
</h3>
58-
<p class="line-clamp-2 text-sm text-muted" :title="description">
58+
<p class="line-clamp-2 text-sm text-muted grow" :title="description">
5959
{{ description }}
6060
</p>
6161
</div>

src/components/templates/TemplateWorkflowsContent.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@
4343
</h2>
4444
</div>
4545
<div
46-
class="grid grid-cols-[repeat(auto-fill,minmax(16rem,1fr))] gap-8 justify-items-center"
46+
class="grid grid-cols-[repeat(auto-fill,minmax(16rem,1fr))] auto-rows-fr gap-8 justify-items-center"
4747
>
48-
<div v-for="template in selectedTab.templates" :key="template.name">
48+
<div
49+
v-for="template in selectedTab.templates"
50+
:key="template.name"
51+
class="h-full"
52+
>
4953
<TemplateWorkflowCard
5054
:source-module="selectedTab.moduleName"
5155
:template="template"

0 commit comments

Comments
 (0)