The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Styling fixes on flyout
Joshen Limd740f86a94f0
diff --git a/www/components/UI/FlyOut.tsx b/www/components/UI/FlyOut.tsxindex dd1a7f1d18c..b3fa6874660 100644--- a/www/components/UI/FlyOut.tsx+++ b/www/components/UI/FlyOut.tsx@@ -6,10 +6,11 @@ type Props = {children?: React.ReactNodeclassName?: stringrenderTriggerElement?: any+ singleBgColor?: boolean}const FlyOut = (props: Props) => {- const { title = '', children, className = '', renderTriggerElement = null } = props+ const { title = '', children, className = '', renderTriggerElement = null, singleBgColor = false } = propsconst [show, setShow] = useState(false)function handleToggle() {@@ -83,8 +84,8 @@ const FlyOut = (props: Props) => {}}><div className="absolute inset-0 flex sm:flex-col lg:flex-row" aria-hidden="true">- <div className="bg-white dark:bg-dark-600 sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full"></div>- <div className="bg-gray-50 dark:bg-dark-500 sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full"></div>+ <div className="bg-white dark:bg-dark-600 sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full" />+ <div className={`${singleBgColor ? 'bg-white dark:bg-dark-600' : 'bg-gray-50 dark:bg-dark-500'} sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full`} />{/* <div className="bg-gray-50 dark:bg-dark-300 md:hidden lg:block lg:w-1/2"></div> */}</div><divdiff --git a/www/pages/beta.tsx b/www/pages/beta.tsxindex 355aceba112..ff12e14f152 100644--- a/www/pages/beta.tsx+++ b/www/pages/beta.tsx@@ -22,7 +22,7 @@ const NavFlyOutMenu = (props: any) => {{segments.flat().map((segment: any) => (<divonClick={() => scrollTo(segment.key)}- className="col-span-4 px-6 py-8 text-dark-300 dark:text-dark-400 cursor-pointer bg-white hover:bg-dark-100"+ className="col-span-4 px-6 py-10 text-dark-300 dark:text-dark-400 cursor-pointer bg-white dark:bg-dark-600 hover:bg-dark-100 dark:hover:bg-dark-500"><p className="flex items-center text-black dark:text-white"><span className="font-mono text-xs text-dark-300 dark:text-dark-400 mr-2">@@ -848,7 +848,7 @@ const Beta = () => {<Container><div className="relative shadow-lg py-5 px-5 lg:px-20 sticky inset-0 bg-dark-800 z-50 flex items-center justify-between"><img className="h-5" src="images/logo-dark.png" />- <FlyOut className="lg:col-span-1" renderTriggerElement={renderHamburgerMenu}>+ <FlyOut className="lg:col-span-1" renderTriggerElement={renderHamburgerMenu} singleBgColor={true}><NavFlyOutMenu scrollTo={scrollTo} /></FlyOut></div>