Skip to content

Commit c42748e

Browse files
committed
Update LoopsListView.tsx
1 parent 0c8c9f5 commit c42748e

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

packages/ui/src/features/loops/components/LoopsListView.tsx

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -238,40 +238,40 @@ function TemplateCard({
238238
<button
239239
type="button"
240240
onClick={onSelect}
241-
className="flex flex-col gap-2 rounded-(--radius-3) border border-border bg-(--color-panel-solid) p-4 text-left transition-colors hover:border-(--gray-6) hover:bg-(--gray-2)"
241+
className="flex items-start gap-2.5 rounded-(--radius-3) border border-border bg-(--color-panel-solid) p-3 text-left transition-colors hover:border-(--gray-6) hover:bg-(--gray-2)"
242242
>
243-
<Flex align="center" className="gap-2.5">
244-
<Flex
245-
align="center"
246-
justify="center"
247-
className={`size-7 shrink-0 rounded-(--radius-2) ${TONE_CLASSES[template.tone]}`}
248-
>
249-
<Icon size={15} />
250-
</Flex>
251-
<Text className="font-medium text-[14px] text-gray-12">
252-
{template.name}
253-
</Text>
254-
</Flex>
255-
<Text className="text-[12.5px] text-gray-11 leading-snug">
256-
{template.description}
257-
</Text>
258243
<Flex
259244
align="center"
260-
justify="between"
261-
gap="3"
262-
className="mt-auto w-full text-gray-10"
245+
justify="center"
246+
className={`size-6 shrink-0 rounded-(--radius-2) ${TONE_CLASSES[template.tone]}`}
263247
>
264-
<Flex align="center" className="min-w-0 gap-1.5">
265-
<TriggerIcon size={12} className="shrink-0" />
266-
<Text className="truncate text-[11.5px]">
267-
{template.triggerLabel}
268-
</Text>
269-
</Flex>
270-
<Flex align="center" className="shrink-0 gap-1.5">
271-
<PlugsIcon size={12} className="shrink-0" />
272-
<Text className="text-[11.5px]">
273-
Works with {template.worksWith.join(" · ")}
274-
</Text>
248+
<Icon size={13} />
249+
</Flex>
250+
<Flex direction="column" gap="1" className="min-w-0 flex-1">
251+
<Text className="font-medium text-[13px] text-gray-12 leading-tight">
252+
{template.name}
253+
</Text>
254+
<Text className="text-[12px] text-gray-11 leading-snug">
255+
{template.description}
256+
</Text>
257+
<Flex
258+
align="center"
259+
justify="between"
260+
gap="3"
261+
className="mt-0.5 w-full text-(--accent-11)"
262+
>
263+
<Flex align="center" className="min-w-0 gap-1.5">
264+
<TriggerIcon size={11} className="shrink-0" />
265+
<Text className="truncate text-[11px]">
266+
{template.triggerLabel}
267+
</Text>
268+
</Flex>
269+
<Flex align="center" className="shrink-0 gap-1.5">
270+
<PlugsIcon size={11} className="shrink-0" />
271+
<Text className="text-[11px]">
272+
Works with {template.worksWith.join(" · ")}
273+
</Text>
274+
</Flex>
275275
</Flex>
276276
</Flex>
277277
</button>

0 commit comments

Comments
 (0)