modified: frontend/src/components/SqlEditor.tsx

This commit is contained in:
2026-01-27 23:29:03 +03:00
parent 45f039546b
commit 971e6d3758

View File

@@ -50,7 +50,7 @@ const getCachedTables = async (databaseId: string): Promise<string[]> => {
let completionProviderRegistered = false;
let currentDatabaseId: string | undefined;
export default function SqlEditor({ value, onChange, databaseId, height = '400px' }: SqlEditorProps) {
export default function SqlEditor({ value, onChange, databaseId, height }: SqlEditorProps) {
const editorRef = useRef<any>(null);
const monacoRef = useRef<Monaco | null>(null);
@@ -124,7 +124,7 @@ export default function SqlEditor({ value, onChange, databaseId, height = '400px
};
return (
<div className="border border-gray-300 rounded-lg overflow-hidden h-full">
<div className="border border-gray-300 rounded-lg overflow-hidden" style={{ height: height || '100%' }}>
<Editor
height="100%"
defaultLanguage="sql"