Skip to content

Commit 9634878

Browse files
author
aaquib90
committed
Templates: ensure CTA stays within card (wrap row and responsive widths)
1 parent 8fd950e commit 9634878

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎web/src/components/templates/TemplateCard.jsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default function TemplateCard({ template, onPreview, onUse }) {
127127
</ul>
128128
</div>
129129
) : null}
130-
<div className="flex flex-col gap-2 sm:flex-row">
130+
<div className="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
131131
<Button
132132
shape="pill"
133133
className="w-full px-5 sm:w-auto"
@@ -143,7 +143,7 @@ export default function TemplateCard({ template, onPreview, onUse }) {
143143
>
144144
See how it looks
145145
</Button>
146-
<Button asChild variant="ghost" shape="pill" className="w-full px-5">
146+
<Button asChild variant="ghost" shape="pill" className="w-full px-5 sm:w-auto">
147147
<Link to={`/templates/${encodeURIComponent(template.id)}`}>View details</Link>
148148
</Button>
149149
</div>

0 commit comments

Comments
 (0)