The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: issue with scrolling because of custom component
Jonathan Summers-Muir4c96c8214afc
diff --git a/apps/reference/src/css/components/_doc-sidebar.scss b/apps/reference/src/css/components/_doc-sidebar.scssindex 0f992b7b343..53d064757ac 100644--- a/apps/reference/src/css/components/_doc-sidebar.scss+++ b/apps/reference/src/css/components/_doc-sidebar.scss@@ -14,21 +14,33 @@ html[data-theme='dark'] {}:root {- --doc-sidebar-width: 32rem;- --dropdown-icon-width: 0.625rem;- --dropdown-icon-height: 0.375rem;- --dropdown-icon-gap: 0.688rem;- --ifm-menu-link-padding-vertical: 0.5rem;- --ifm-menu-color-active: var(--ifm-link-color);- --sidebar-spacing-horizontal: 1.5rem;+ // --doc-sidebar-width: 32rem;+ // --dropdown-icon-width: 0.625rem;+ // --dropdown-icon-height: 0.375rem;+ // --dropdown-icon-gap: 0.688rem;+ // --ifm-menu-link-padding-vertical: 0.5rem;+ // --ifm-menu-color-active: var(--ifm-link-color);+ // --sidebar-spacing-horizontal: 1.5rem;++ --tw-ring-inset: ;+ --tw-ring-offset-width: 0px;+ --tw-ring-offset-color: #fff;++ --tw-ring-offset-shadow: 0 0 #0000;+ --tw-ring-shadow: 0 0 #0000;+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0/0.05);++ --tw-ring-color: rgb(15 23 42/0.05);}.theme-doc-sidebar-menu-custom-container {- padding: 32px;+ // padding: 32px;+ padding: var(--custom-sidebar-padding);+ overflow-x: hidden;.custom--main-menu-button {display: flex;- padding: 1rem 0 0.5rem 0.5rem;+ padding: 1rem 0 0.5rem 1rem;font-size: 0.9rem;color: var(--custom-content-color-light);}@@ -55,8 +67,16 @@ html[data-theme='dark'] {align-items: center;justify-content: center;border-radius: 4px;- background-color: var(--custom-background-color-diff);- border: 1px solid var(--custom-background-color-highlight);+ background-color: white;+ // border: 1px solid var(--custom-background-color-diff-1);++ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),+ var(--tw-shadow, 0 0 #0000);++ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0+ var(--tw-ring-offset-width) var(--tw-ring-offset-color);+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0+ calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);img {width: 1.5rem;@@ -112,3 +132,13 @@ html[data-theme='dark'] {}}}++html[data-theme='dark'] {+ .custom--main-menu-header-container {+ .custom--main-menu-header__icon {+ background-color: var(--custom-background-color-highlight);+ border-color: var(--custom-background-color-diff);+ box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 5%);+ }+ }+}diff --git a/apps/reference/src/css/main.scss b/apps/reference/src/css/main.scssindex 43286151e9e..4311942ac33 100644--- a/apps/reference/src/css/main.scss+++ b/apps/reference/src/css/main.scss@@ -164,15 +164,16 @@--ifm-sidebar-border-color: var(--custom-border-color);--ifm-menu-color-active: var(--custom-primary);--ifm-menu-link-padding-horizontal: 0rem;- --doc-sidebar-width: 24rem;--dropdown-icon-width: 0.625rem;--dropdown-icon-height: 0.375rem;--dropdown-icon-gap: 0.688rem;--ifm-menu-link-padding-vertical: 0.5rem;--sidebar-spacing-horizontal: 1.5rem;+ --doc-sidebar-width: 20rem;+ --custom-sidebar-padding: 0.5rem;/* Doc item */- --doc-item-container-width: 50rem;+ --doc-item-container-width: 60rem;/* Doc Page */diff --git a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.jsindex 20afa2ac9c5..c8198eb129c 100644--- a/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js+++ b/apps/reference/src/theme/DocSidebar/Desktop/Content/index.js@@ -17,31 +17,31 @@ const subNavRoutes = [const headerNames = {api: {name: 'API',- icon: null,+ icon: 'javascript-icon',},cli: {name: 'CLI',- icon: null,+ icon: 'cli-icon',},auth: {name: 'Auth',- icon: null,+ icon: 'javascript-icon',},storage: {name: 'Storage',- icon: null,+ icon: 'javascript-icon',},javascript: {name: 'supabase-js',- icon: null,+ icon: 'javascript-icon',},dart: {name: 'Dart',- icon: null,+ icon: 'dart-icon',},'auth-helpers': {name: 'Auth Helpers',- icon: null,+ // icon: 'javascript-icon',},}@@ -62,12 +62,14 @@ const RefHeader = (props) => {console.log('found path', found)return (<div className="custom--main-menu-header-container">- <div className="custom--main-menu-header__icon">- <img- src="/docs/img/icons/languages/javascript-icon.svg"- alt="supabase-logo"- />- </div>+ {headerNames[found].icon && (+ <div className="custom--main-menu-header__icon">+ <img+ src={`/docs/img/icons/${headerNames[found].icon}.svg`}+ alt="supabase-logo"+ />+ </div>+ )}<h4 className="custom--main-menu-header">{headerNames[found].name}</h4></div>)@@ -76,31 +78,31 @@ const RefHeader = (props) => {export default function ContentWrapper(props) {const { pathname } = useLocation()- // console.log('pathname', pathname)-return (- <div className="theme-doc-sidebar-menu-custom-container">- {pathname && requiresSubNav(pathname, subNavRoutes) && (- <>- <Link to="/docs/reference" className="custom--main-menu-button">- <svg- width="24"- height="24"- viewBox="0 0 24 24"- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M20.3284 11.0001V13.0001L7.50011 13.0001L10.7426 16.2426L9.32842 17.6568L3.67157 12L9.32842 6.34314L10.7426 7.75735L7.49988 11.0001L20.3284 11.0001Z"- fill="currentColor"- />- </svg>- <span>All Reference Docs</span>- </Link>- <RefHeader pathname={pathname} />- </>- )}- <Content {...props} />- </div>+ <>+ <div className="theme-doc-sidebar-menu-custom-container">+ {pathname && requiresSubNav(pathname, subNavRoutes) && (+ <>+ <Link to="/docs/reference" className="custom--main-menu-button">+ <svg+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M20.3284 11.0001V13.0001L7.50011 13.0001L10.7426 16.2426L9.32842 17.6568L3.67157 12L9.32842 6.34314L10.7426 7.75735L7.49988 11.0001L20.3284 11.0001Z"+ fill="currentColor"+ />+ </svg>+ <span>All Reference Docs</span>+ </Link>+ <RefHeader pathname={pathname} />+ </>+ )}+ <Content {...props} />+ </div>+ </>)}