The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove padding around API docs side panel
Joshen Lim18a12b01dee1
diff --git a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsxindex abedb7240cb..4299ef0d8ef 100644--- a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx+++ b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx@@ -85,54 +85,52 @@ const APIDocumentationPanel = ({ visible, onClose }: APIDocumentationPanelProps)}><div className="Docs Docs--table-editor">- <SidePanel.Content>- {isErrorJSONSchema && (- <div className="p-6 mx-auto text-center sm:w-full md:w-3/4">- <div className="text-scale-1000">- <p>Error connecting to API</p>- <p>{`${jsonSchemaError}`}</p>- </div>+ {isErrorJSONSchema && (+ <div className="p-6 mx-auto text-center sm:w-full md:w-3/4">+ <div className="text-scale-1000">+ <p>Error connecting to API</p>+ <p>{`${jsonSchemaError}`}</p></div>- )}- {isSuccessJSONSchema && (- <>- {jsonSchema ? (- <>- <div className="sticky top-0 z-10 bg-scale-100 dark:bg-scale-300">- <LangSelector- selectedLang={selectedLang}- setSelectedLang={setSelectedLang}- showApiKey={showApiKey}- setShowApiKey={setShowApiKey}- apiKey={anonKey}- autoApiService={autoApiService}- />- </div>+ </div>+ )}+ {isSuccessJSONSchema && (+ <>+ {jsonSchema ? (+ <>+ <div className="sticky top-0 z-10 bg-scale-100 dark:bg-scale-300">+ <LangSelector+ selectedLang={selectedLang}+ setSelectedLang={setSelectedLang}+ showApiKey={showApiKey}+ setShowApiKey={setShowApiKey}+ apiKey={anonKey}+ autoApiService={autoApiService}+ />+ </div>- {jsonSchema?.definitions && (- <ResourceContent- autoApiService={autoApiService}- selectedLang={selectedLang}- resourceId={tables.find((table) => table.id === Number(id))?.name}- resources={resources}- definitions={jsonSchema.definitions}- paths={jsonSchema.paths}- showApiKey={showApiKey.key}- refreshDocs={async () => await refetch()}- />- )}- <div className="mt-8">- <GeneratingTypes selectedLang={selectedLang} />- </div>- </>- ) : (- <div className="p-6 mx-auto text-center sm:w-full md:w-3/4">- <h3 className="text-lg">Building docs ...</h3>+ {jsonSchema?.definitions && (+ <ResourceContent+ autoApiService={autoApiService}+ selectedLang={selectedLang}+ resourceId={tables.find((table) => table.id === Number(id))?.name}+ resources={resources}+ definitions={jsonSchema.definitions}+ paths={jsonSchema.paths}+ showApiKey={showApiKey.key}+ refreshDocs={async () => await refetch()}+ />+ )}+ <div className="mt-8">+ <GeneratingTypes selectedLang={selectedLang} /></div>- )}- </>- )}- </SidePanel.Content>+ </>+ ) : (+ <div className="p-6 mx-auto text-center sm:w-full md:w-3/4">+ <h3 className="text-lg">Building docs ...</h3>+ </div>+ )}+ </>+ )}</div></SidePanel>)