diff --git a/apps/studio/components/ui/AIAssistantPanel/SqlSnippet.tsx b/apps/studio/components/ui/AIAssistantPanel/SqlSnippet.tsx index 952a532e9e3..de91f7eab30 100644 --- a/apps/studio/components/ui/AIAssistantPanel/SqlSnippet.tsx +++ b/apps/studio/components/ui/AIAssistantPanel/SqlSnippet.tsx @@ -222,7 +222,9 @@ export const SqlCard = ({ className="w-7 h-7" icon={} onClick={() => setShowCode(!showCode)} - tooltip={{ content: { side: 'bottom', text: 'Show query' } }} + tooltip={{ + content: { side: 'bottom', text: showCode ? 'Hide query' : 'Show query' }, + }} /> {!isInSQLEditor || isInNewSnippet ? ( @@ -314,7 +316,7 @@ export const SqlCard = ({ value={sql} language="sql" className={cn( - 'max-h-96 block !bg-transparent !py-3 !px-3.5 prose dark:prose-dark border-0 border-t text-foreground !rounded-none w-full', + 'max-h-96 max-w-none block !bg-transparent !py-3 !px-3.5 prose dark:prose-dark border-0 border-t text-foreground !rounded-none w-full', '[&>code]:m-0 [&>code>span]:flex [&>code>span]:flex-wrap [&>code]:block [&>code>span]:text-foreground' )} />