Skip to content

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

feat(sql-editor): improve ai loading transition

Greg Richardsonaa79a2b37c08
diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
index 54c476233e9..d0ee20f5001 100644
--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
@@ -79,8 +79,16 @@ const SQLTemplates = observer(() => {
key="ask-ai-input"
layoutId="ask-ai-input"
className="w-full max-w-2xl border border-brand-900"
- initial={{ y: -50, opacity: 0, borderRadius: 6 }}
- animate={{ y: 0, opacity: 1, borderRadius: 6 }}
+ initial={{
+ y: -50,
+ opacity: 0,
+ borderRadius: 6,
+ }}
+ animate={{
+ y: 0,
+ opacity: 1,
+ borderRadius: 6,
+ }}
>
<Input
size="xlarge"
@@ -157,6 +165,12 @@ const SQLTemplates = observer(() => {
animate={{
borderRadius: 50,
}}
+ transition={{
+ type: 'spring',
+ mass: 0.1,
+ stiffness: 200,
+ damping: 30,
+ }}
>
<motion.div
key="ask-ai-loading-icon"