fix diagrams sizes

This commit is contained in:
Guy Ben-Aharon
2024-08-23 22:50:21 +03:00
parent 7ec8783fb3
commit 242a1089e6
2 changed files with 24 additions and 17 deletions

View File

@@ -85,14 +85,17 @@ export const ExportSQLDialog: React.FC<ExportSQLDialogProps> = ({
<DialogHeader>
<DialogTitle>Export SQL</DialogTitle>
<DialogDescription>
Export the SQL of the current diagram
Export your diagram schema as SQL script
</DialogDescription>
</DialogHeader>
<div className="flex flex-1 items-center justify-center">
{(script?.length ?? 0) === 0 ? (
renderLoader()
) : (
<CodeSnippet code={script!} />
<CodeSnippet
className="max-h-96 w-full"
code={script!}
/>
)}
</div>