Round the top edges of template cards (#1721)

This commit is contained in:
Shuchang Zheng
2025-02-05 04:25:57 +08:00
committed by GitHub
parent b41bfd75c7
commit 27b2551c7f

View File

@@ -7,12 +7,8 @@ type Props = {
function WorkflowTemplateCard({ title, image, onClick }: Props) { function WorkflowTemplateCard({ title, image, onClick }: Props) {
return ( return (
<div className="h-48 w-56 cursor-pointer rounded-xl" onClick={onClick}> <div className="h-48 w-56 cursor-pointer rounded-xl" onClick={onClick}>
<div className="h-28 bg-slate-elevation1 px-6 pt-6"> <div className="h-28 rounded-t-xl bg-slate-elevation1 px-6 pt-6">
<img <img src={image} alt={title} className="h-full w-full object-cover" />
src={image}
alt={title}
className="h-full w-full rounded-t-xl object-cover"
/>
</div> </div>
<div className="h-20 space-y-1 rounded-b-xl bg-slate-elevation2 p-3"> <div className="h-20 space-y-1 rounded-b-xl bg-slate-elevation2 p-3">
<h1 <h1