Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Chore/fix cardbutton (#26496)

Terry Suttonf6fa953d69a2
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx
index a82ee41760a..0f0f9361fc7 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx
@@ -21,6 +21,7 @@ const SQLCard = ({ title, description, sql, onClick }: SQLCardProps) => {
loading={loading}
onClick={() => handleOnClick()}
description={description}
+ className="xl:h-48 p-6"
/>
)
}
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx
index 514e6dc662d..d87a2219c06 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx
@@ -55,16 +55,13 @@ const SQLQuickstarts = () => {
<div className="mb-8">
<div className="mb-4">
<h1 className="text-foreground mb-3 text-xl">Quickstarts</h1>
- <p className="text-foreground-light text-sm">
- While we're in beta, we want to offer a quick way to explore Supabase. While we build
- importers, check out these simple starters.
- </p>
+
<p className="text-foreground-light text-sm">
Click on any script to fill the query box, modify the script, then click
<span className="text-code">Run</span>.
</p>
</div>
- <div className="grid gap-4 sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4">
+ <div className="grid gap-4 sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">
{quickStart.map((x) => (
<SQLCard
key={x.title}
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
index 8d2a5aae453..6d35b331f42 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
@@ -63,7 +63,7 @@ const SQLTemplates = () => {
<span className="text-code">Run</span>.
</p>
</div>
- <div className="grid gap-4 sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4">
+ <div className="grid gap-4 sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 ">
{sql.map((x) => (
<SQLCard
key={x.title}
diff --git a/apps/studio/components/ui/CardButton.tsx b/apps/studio/components/ui/CardButton.tsx
index ae04e19e16c..4ee03b7df3b 100644
--- a/apps/studio/components/ui/CardButton.tsx
+++ b/apps/studio/components/ui/CardButton.tsx
@@ -125,7 +125,7 @@ const CardButton = ({
{icon && <ImageContainer>{icon}</ImageContainer>}
<div className="flex h-full w-full flex-col space-y-2">
{typeof title === 'string' ? (
- <h5 className={`text-foreground ${titleClass}`}>{title}</h5>
+ <h5 className={`text-foreground pr-5 ${titleClass}`}>{title}</h5>
) : (
title
)}