The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix copy btn alignment, fix titles (#29980)
Jordi Enric442bba9ed58b
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx b/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsxindex c7a6d94f3f1..055552e3e7a 100644--- a/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx@@ -39,8 +39,8 @@ const DatabaseApiSelectionRender = ({ log }: any) => {</div><LogsDivider /><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Request Metadata</h3>- <pre className="text-sm syntax-highlight overflow-x-auto">+ <h3 className="text-foreground-light mb-4 font-mono text-sm uppercase">Request Metadata</h3>+ <pre className="text-sm syntax-highlight overflow-x-auto mb-4"><divclassName="text-wrap"dangerouslySetInnerHTML={{@@ -51,8 +51,10 @@ const DatabaseApiSelectionRender = ({ log }: any) => {</div><LogsDivider /><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Response Metadata</h3>- <pre className="text-sm syntax-highlight overflow-x-auto">+ <h3 className="text-foreground-light mb-4 font-mono text-sm uppercase">+ Response Metadata+ </h3>+ <pre className="text-sm syntax-highlight overflow-x-auto mb-4"><divdangerouslySetInnerHTML={{__html: response ? jsonSyntaxHighlight(log.metadata[0].response[0]) : '',diff --git a/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx b/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsxindex 792637d8a02..1035b3b7007 100644--- a/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx@@ -40,8 +40,8 @@ const FunctionInvocationSelectionRender = ({ log }: { log: PreviewLogData }) =>)}</div><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Request Metadata</h3>- <pre className="text-sm syntax-highlight overflow-x-auto">+ <h3 className="text-foreground-light mb-4 font-mono text-sm uppercase">Request Metadata</h3>+ <pre className="text-sm syntax-highlight overflow-x-auto mb-4"><divclassName="text-wrap"dangerouslySetInnerHTML={{@@ -51,8 +51,10 @@ const FunctionInvocationSelectionRender = ({ log }: { log: PreviewLogData }) =></pre></div><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Response Metadata</h3>- <pre className="text-sm syntax-highlight overflow-x-auto">+ <h3 className="text-foreground-light mb-4 font-mono text-sm uppercase">+ Response Metadata+ </h3>+ <pre className="text-sm syntax-highlight overflow-x-auto mb-4"><divdangerouslySetInnerHTML={{__html: response ? jsonSyntaxHighlight(filterFunctionsRequestResponse(response)) : '',diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsxindex e16e9976d28..f5b3c2d7b74 100644--- a/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx@@ -30,20 +30,20 @@ export const SelectionDetailedRow = ({valueRender?: React.ReactNode}) => {return (- <div className="group flex items-center gap-2 flex-wrap relative">+ <div className="group flex items-center gap-2 flex-wrap"><span className="text-foreground-lighter text-sm col-span-3 whitespace-pre-wrap">{label}</span><spantitle={value}- className="truncate font-mono text-foreground text-sm col-span-8 whitespace-pre-wrap break-all"+ className="truncate font-mono text-foreground text-sm whitespace-pre-wrap break-all">{valueRender ?? value}</span><CopyButtoniconOnlytext={value}- className="group-hover:opacity-100 opacity-0 p-0 h-6 w-6 col-span-1 absolute top-1 right-1"+ className="group-hover:opacity-100 opacity-0 p-0 h-6 w-6"type="text"title="Copy to clipboard"/>