Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix(button): set shrink to fix content overflow issue (#746)

Hexi78d8d9b34271
diff --git a/components/template-open.tsx b/components/template-open.tsx
index 9f9cd708..aeced8f9 100644
--- a/components/template-open.tsx
+++ b/components/template-open.tsx
@@ -21,7 +21,7 @@ export function TemplateOpen({ url, free = false }: TemplateOpenProps) {
buttonVariants({
variant: "default",
}),
- "not-prose group relative w-full gap-2",
+ "not-prose group relative w-full gap-2 shrink",
)}
>
Download
@@ -38,7 +38,7 @@ export function TemplateOpen({ url, free = false }: TemplateOpenProps) {
buttonVariants({
variant: "default",
}),
- "not-prose group relative w-full gap-1",
+ "not-prose group relative w-full gap-1 shrink",
)}
>
Buy Now
diff --git a/components/template-preview.tsx b/components/template-preview.tsx
index a3eae613..792cd328 100644
--- a/components/template-preview.tsx
+++ b/components/template-preview.tsx
@@ -18,7 +18,7 @@ export default function TemplatePreview({
buttonVariants({
variant: "outline",
}),
- "not-prose group relative w-full gap-2",
+ "not-prose group relative w-full gap-2 shrink",
)}
href={href}
target="_blank"