Skip to content

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

fix anim

Jonathan Summers-Muir3b17c05daf43
diff --git a/apps/docs/.env.example b/apps/docs/.env.example
index 7fa24758cb1..72e5b6a0548 100644
--- a/apps/docs/.env.example
+++ b/apps/docs/.env.example
@@ -7,5 +7,5 @@ OPENAI_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# Set IS_PLATFORM to true if you have the api keys and urls
-NEXT_PUBLIC_IS_PLATFORM=false
-NEXT_PUBLIC_LOCAL_SUPABASE=false
+NEXT_PUBLIC_IS_PLATFORM=true
+NEXT_PUBLIC_LOCAL_SUPABASE=true
\ No newline at end of file
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index 45b239419d9..d5c62e87132 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -72,6 +72,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
<SearchProvider>
<SiteLayout>
<Component {...pageProps} />
+ <CommandMenu />
</SiteLayout>
</SearchProvider>
</ThemeProvider>
@@ -85,8 +86,6 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
</SearchProvider>
</ThemeProvider>
)}
-
- <CommandMenu />
</>
)
}
diff --git a/packages/config/ui.config.js b/packages/config/ui.config.js
index 119b32bba65..85592daa262 100644
--- a/packages/config/ui.config.js
+++ b/packages/config/ui.config.js
@@ -234,7 +234,7 @@ const uiConfig = {
width: ' 240px',
},
'50%': {
- marginLeft: ' 100%',
+ marginLeft: '100%',
width: '80px',
},
'75%': {
@@ -270,6 +270,8 @@ const uiConfig = {
'panel-slide-right-out': 'panelSlideRightOut 200ms cubic-bezier(0.87, 0, 0.13, 1)',
'panel-slide-right-in': 'panelSlideRightIn 250ms cubic-bezier(0.87, 0, 0.13, 1)',
+ 'line-loading': 'lineLoading 1.8s infinite',
+
// tailwind class for this is `animate-dropdownFadeIn`
dropdownFadeIn: 'dropdownFadeIn 0.1s ease-out',
// tailwind class for this is `animate-dropdownFadeOut`
@@ -287,13 +289,10 @@ const uiConfig = {
function ({ addUtilities, addVariant }) {
// addVariant('data-open', '&:[data-state=open]')
addUtilities({
- '.loading-line--animate': {
- xTransition: 'all 1s ease-in-out',
- animation: 'ani 1.8s infinite',
+ '.line-loading-bg': {
background: 'rgb(0, 0, 0)',
background:
'linear-gradient(90deg,rgba(0, 0, 0, 0) 0%,rgba(255, 255, 255, 0.65) 50%,rgba(0, 0, 0, 0) 100%)',
- boxShadow: '1px 2px 0 0 white',
},
".dropdown-content[data-state='open']": {
animation: 'fadeIn 50ms ease-out',
@@ -301,7 +300,6 @@ const uiConfig = {
".dropdown-content[data-state='closed']": {
animation: 'fadeOut 50ms ease-in',
},
-
"[data-state='open'] .accordion-content-animation": {
animation: 'slideDown 200ms ease-out',
},
diff --git a/packages/ui/src/components/Command/LoadingLine.tsx b/packages/ui/src/components/Command/LoadingLine.tsx
index 0e7164713c7..b1aef8fa9b8 100644
--- a/packages/ui/src/components/Command/LoadingLine.tsx
+++ b/packages/ui/src/components/Command/LoadingLine.tsx
@@ -3,12 +3,13 @@ import { cn } from '../../utils/cn'
export const LoadingLine = ({ loading }: { loading: boolean }) => {
return (
- <div className="loading-line relative overflow-hidden w-full h-px bg-[#2e2e2e] m-auto">
+ <div className="relative overflow-hidden w-full h-px bg-[#2e2e2e] m-auto">
<span
className={cn(
'absolute w-[80px] h-px ml-auto mr-auto left-0 right-0 text-center block top-0',
- 'loading-line--sprite transition-all',
- loading && 'loading-line--animate opacity-100',
+ 'transition-all',
+ 'line-loading-bg',
+ loading && 'animate-line-loading opacity-100',
loading ? 'opacity-100' : 'opacity-0'
)}
></span>